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

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

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

export type MThumbnail = Omit<ThumbnailModel, 'Video' | 'VideoPlaylist'>

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

export type MThumbnailVideo =
  MThumbnail &
  Use<'Video', MVideo>