mirror of https://github.com/Chocobozzz/PeerTube
16 lines
533 B
TypeScript
16 lines
533 B
TypeScript
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>
|