PeerTube/server/types/models/video/thumbnail.ts

16 lines
527 B
TypeScript
Raw Normal View History

import { PickWith } from '@shared/core-utils'
2019-08-15 11:53:26 +02:00
import { ThumbnailModel } from '../../../models/video/thumbnail'
import { MVideo } from './video'
type Use<K extends keyof ThumbnailModel, M> = PickWith<ThumbnailModel, K, M>
// ############################################################################
2019-08-15 11:53:26 +02:00
export type MThumbnail = Omit<ThumbnailModel, 'Video' | 'VideoPlaylist'>
// ############################################################################
export type MThumbnailVideo =
MThumbnail &
Use<'Video', MVideo>