]>
Commit | Line | Data |
---|---|---|
c6c0fa6c | 1 | import { VideoLiveModel } from '@server/models/video/video-live' |
6b5f72be | 2 | import { PickWith } from '@shared/typescript-utils' |
c6c0fa6c | 3 | import { MVideo } from './video' |
05a60d85 | 4 | import { MLiveReplaySetting } from './video-live-replay-setting' |
c6c0fa6c C |
5 | |
6 | type Use<K extends keyof VideoLiveModel, M> = PickWith<VideoLiveModel, K, M> | |
7 | ||
8 | // ############################################################################ | |
9 | ||
05a60d85 | 10 | export type MVideoLive = Omit<VideoLiveModel, 'Video' | 'ReplaySetting'> |
c6c0fa6c C |
11 | |
12 | // ############################################################################ | |
13 | ||
14 | export type MVideoLiveVideo = | |
15 | MVideoLive & | |
16 | Use<'Video', MVideo> | |
05a60d85 W |
17 | |
18 | // ############################################################################ | |
19 | ||
20 | export type MVideoLiveVideoWithSetting = | |
21 | MVideoLiveVideo & | |
22 | Use<'ReplaySetting', MLiveReplaySetting> |