2021-02-12 16:23:19 +01:00
|
|
|
import { PickWith } from '@shared/core-utils'
|
2019-08-15 11:53:26 +02:00
|
|
|
import { ThumbnailModel } from '../../../models/video/thumbnail'
|
2021-02-12 16:23:19 +01:00
|
|
|
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'>
|
2021-02-12 16:23:19 +01:00
|
|
|
|
|
|
|
// ############################################################################
|
|
|
|
|
|
|
|
export type MThumbnailVideo =
|
|
|
|
MThumbnail &
|
|
|
|
Use<'Video', MVideo>
|