]>
Commit | Line | Data |
---|---|---|
6b5f72be | 1 | import { PickWith } from '@shared/typescript-utils' |
453e83ea | 2 | import { ThumbnailModel } from '../../../models/video/thumbnail' |
a8b1b404 C |
3 | import { MVideo } from './video' |
4 | ||
5 | type Use<K extends keyof ThumbnailModel, M> = PickWith<ThumbnailModel, K, M> | |
6 | ||
7 | // ############################################################################ | |
453e83ea C |
8 | |
9 | export type MThumbnail = Omit<ThumbnailModel, 'Video' | 'VideoPlaylist'> | |
a8b1b404 C |
10 | |
11 | // ############################################################################ | |
12 | ||
13 | export type MThumbnailVideo = | |
14 | MThumbnail & | |
15 | Use<'Video', MVideo> |