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