]>
Commit | Line | Data |
---|---|---|
1 | import { VideoChannelSyncModel } from '@server/models/video/video-channel-sync' | |
2 | import { FunctionProperties, PickWith } from '@shared/typescript-utils' | |
3 | import { MChannelAccountDefault, MChannelFormattable } from './video-channels' | |
4 | ||
5 | type Use<K extends keyof VideoChannelSyncModel, M> = PickWith<VideoChannelSyncModel, K, M> | |
6 | ||
7 | export type MChannelSync = Omit<VideoChannelSyncModel, 'VideoChannel'> | |
8 | ||
9 | export type MChannelSyncChannel = | |
10 | MChannelSync & | |
11 | Use<'VideoChannel', MChannelAccountDefault> & | |
12 | FunctionProperties<VideoChannelSyncModel> | |
13 | ||
14 | export type MChannelSyncFormattable = | |
15 | FunctionProperties<MChannelSyncChannel> & | |
16 | Use<'VideoChannel', MChannelFormattable> & | |
17 | MChannelSync |