diff options
Diffstat (limited to 'server/types/models/video/video-live-session.ts')
-rw-r--r-- | server/types/models/video/video-live-session.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/server/types/models/video/video-live-session.ts b/server/types/models/video/video-live-session.ts new file mode 100644 index 000000000..2e5e4b684 --- /dev/null +++ b/server/types/models/video/video-live-session.ts | |||
@@ -0,0 +1,15 @@ | |||
1 | import { VideoLiveSessionModel } from '@server/models/video/video-live-session' | ||
2 | import { PickWith } from '@shared/typescript-utils' | ||
3 | import { MVideo } from './video' | ||
4 | |||
5 | type Use<K extends keyof VideoLiveSessionModel, M> = PickWith<VideoLiveSessionModel, K, M> | ||
6 | |||
7 | // ############################################################################ | ||
8 | |||
9 | export type MVideoLiveSession = Omit<VideoLiveSessionModel, 'Video' | 'VideoLive'> | ||
10 | |||
11 | // ############################################################################ | ||
12 | |||
13 | export type MVideoLiveSessionReplay = | ||
14 | MVideoLiveSession & | ||
15 | Use<'ReplayVideo', MVideo> | ||