diff options
Diffstat (limited to 'server/types/models/video/video-live.ts')
-rw-r--r-- | server/types/models/video/video-live.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/server/types/models/video/video-live.ts b/server/types/models/video/video-live.ts index 903cea982..a899edfa6 100644 --- a/server/types/models/video/video-live.ts +++ b/server/types/models/video/video-live.ts | |||
@@ -1,15 +1,22 @@ | |||
1 | import { VideoLiveModel } from '@server/models/video/video-live' | 1 | import { VideoLiveModel } from '@server/models/video/video-live' |
2 | import { PickWith } from '@shared/typescript-utils' | 2 | import { PickWith } from '@shared/typescript-utils' |
3 | import { MVideo } from './video' | 3 | import { MVideo } from './video' |
4 | import { MLiveReplaySetting } from './video-live-replay-setting' | ||
4 | 5 | ||
5 | type Use<K extends keyof VideoLiveModel, M> = PickWith<VideoLiveModel, K, M> | 6 | type Use<K extends keyof VideoLiveModel, M> = PickWith<VideoLiveModel, K, M> |
6 | 7 | ||
7 | // ############################################################################ | 8 | // ############################################################################ |
8 | 9 | ||
9 | export type MVideoLive = Omit<VideoLiveModel, 'Video'> | 10 | export type MVideoLive = Omit<VideoLiveModel, 'Video' | 'ReplaySetting'> |
10 | 11 | ||
11 | // ############################################################################ | 12 | // ############################################################################ |
12 | 13 | ||
13 | export type MVideoLiveVideo = | 14 | export type MVideoLiveVideo = |
14 | MVideoLive & | 15 | MVideoLive & |
15 | Use<'Video', MVideo> | 16 | Use<'Video', MVideo> |
17 | |||
18 | // ############################################################################ | ||
19 | |||
20 | export type MVideoLiveVideoWithSetting = | ||
21 | MVideoLiveVideo & | ||
22 | Use<'ReplaySetting', MLiveReplaySetting> | ||