1 import { LocalVideoViewerModel } from '@server/models/view/local-video-viewer'
2 import { PickWith } from '@shared/typescript-utils'
3 import { MLocalVideoViewerWatchSection } from './local-video-viewer-watch-section'
4 import { MVideo } from './video'
6 type Use<K extends keyof LocalVideoViewerModel, M> = PickWith<LocalVideoViewerModel, K, M>
8 // ############################################################################
10 export type MLocalVideoViewer = Omit<LocalVideoViewerModel, 'Video'>
12 export type MLocalVideoViewerVideo =
16 export type MLocalVideoViewerWithWatchSections =
18 Use<'Video', MVideo> &
19 Use<'WatchSections', MLocalVideoViewerWatchSection[]>