]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - server/types/models/video/video-live.ts
Bumped to version v5.2.1
[github/Chocobozzz/PeerTube.git] / server / types / models / video / video-live.ts
... / ...
CommitLineData
1import { VideoLiveModel } from '@server/models/video/video-live'
2import { PickWith } from '@shared/typescript-utils'
3import { MVideo } from './video'
4import { MLiveReplaySetting } from './video-live-replay-setting'
5
6type Use<K extends keyof VideoLiveModel, M> = PickWith<VideoLiveModel, K, M>
7
8// ############################################################################
9
10export type MVideoLive = Omit<VideoLiveModel, 'Video' | 'ReplaySetting'>
11
12// ############################################################################
13
14export type MVideoLiveVideo =
15 MVideoLive &
16 Use<'Video', MVideo>
17
18// ############################################################################
19
20export type MVideoLiveVideoWithSetting =
21 MVideoLiveVideo &
22 Use<'ReplaySetting', MLiveReplaySetting>