aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/types/models/video/video-live.ts
blob: 346052417bdb7b4c1e75179efc56a399e30bf730 (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/core-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>