]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/types/models/video/video-live-session.ts
Merge branch 'release/4.2.0' into develop
[github/Chocobozzz/PeerTube.git] / server / types / models / video / video-live-session.ts
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>