aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/types/models/video/video-live.ts
blob: 903cea9820854a9890af328c4dc65f3797f3a5ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { VideoLiveModel } from '@server/models/video/video-live'
import { PickWith } from '@shared/typescript-utils'
import { MVideo } from './video'

type Use<K extends keyof VideoLiveModel, M> = PickWith<VideoLiveModel, K, M>

// ############################################################################

export type MVideoLive = Omit<VideoLiveModel, 'Video'>

// ############################################################################

export type MVideoLiveVideo =
  MVideoLive &
  Use<'Video', MVideo>