aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/types/models/video/thumbnail.ts
blob: 81a29e062abc47078e7768308d0c122f4bf448b8 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                             
                                                                




                                                                               

                                                                        





                                                                               
import { PickWith } from '@shared/core-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>