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