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