]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/types/models/video/video-live.ts
Move typescript utils in its own directory
[github/Chocobozzz/PeerTube.git] / server / types / models / video / video-live.ts
1 import { VideoLiveModel } from '@server/models/video/video-live'
2 import { PickWith } from '@shared/typescript-utils'
3 import { MVideo } from './video'
4
5 type Use<K extends keyof VideoLiveModel, M> = PickWith<VideoLiveModel, K, M>
6
7 // ############################################################################
8
9 export type MVideoLive = Omit<VideoLiveModel, 'Video'>
10
11 // ############################################################################
12
13 export type MVideoLiveVideo =
14 MVideoLive &
15 Use<'Video', MVideo>