diff options
Diffstat (limited to 'server/types/models/video/video-channel-sync.ts')
-rw-r--r-- | server/types/models/video/video-channel-sync.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/server/types/models/video/video-channel-sync.ts b/server/types/models/video/video-channel-sync.ts new file mode 100644 index 000000000..429ab70b0 --- /dev/null +++ b/server/types/models/video/video-channel-sync.ts | |||
@@ -0,0 +1,17 @@ | |||
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 | ||