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