]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - thumbnail.ts
81a29e062abc47078e7768308d0c122f4bf448b8
[github/Chocobozzz/PeerTube.git] / thumbnail.ts
1 import { PickWith } from '@shared/core-utils'
2 import { ThumbnailModel } from '../../../models/video/thumbnail'
3 import { MVideo } from './video'
4
5 type Use<K extends keyof ThumbnailModel, M> = PickWith<ThumbnailModel, K, M>
6
7 // ############################################################################
8
9 export type MThumbnail = Omit<ThumbnailModel, 'Video' | 'VideoPlaylist'>
10
11 // ############################################################################
12
13 export type MThumbnailVideo =
14 MThumbnail &
15 Use<'Video', MVideo>