]>
Commit | Line | Data |
---|---|---|
1 | import { VideoShareModel } from '../../../models/video/video-share' | |
2 | import { PickWith } from '@shared/core-utils' | |
3 | import { MActorDefault } from '../account' | |
4 | import { MVideo } from './video' | |
5 | ||
6 | type Use<K extends keyof VideoShareModel, M> = PickWith<VideoShareModel, K, M> | |
7 | ||
8 | // ############################################################################ | |
9 | ||
10 | export type MVideoShare = Omit<VideoShareModel, 'Actor' | 'Video'> | |
11 | ||
12 | export type MVideoShareActor = | |
13 | MVideoShare & | |
14 | Use<'Actor', MActorDefault> | |
15 | ||
16 | export type MVideoShareFull = | |
17 | MVideoShare & | |
18 | Use<'Actor', MActorDefault> & | |
19 | Use<'Video', MVideo> |