aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/types/models/video/video-live-session.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/types/models/video/video-live-session.ts')
-rw-r--r--server/types/models/video/video-live-session.ts15
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 @@
1import { VideoLiveSessionModel } from '@server/models/video/video-live-session'
2import { PickWith } from '@shared/typescript-utils'
3import { MVideo } from './video'
4
5type Use<K extends keyof VideoLiveSessionModel, M> = PickWith<VideoLiveSessionModel, K, M>
6
7// ############################################################################
8
9export type MVideoLiveSession = Omit<VideoLiveSessionModel, 'Video' | 'VideoLive'>
10
11// ############################################################################
12
13export type MVideoLiveSessionReplay =
14 MVideoLiveSession &
15 Use<'ReplayVideo', MVideo>