]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/types/models/video/video-channel-sync.ts
Improve wait transcoding help
[github/Chocobozzz/PeerTube.git] / server / types / models / video / video-channel-sync.ts
CommitLineData
2a491182
F
1import { VideoChannelSyncModel } from '@server/models/video/video-channel-sync'
2import { FunctionProperties, PickWith } from '@shared/typescript-utils'
3import { MChannelAccountDefault, MChannelFormattable } from './video-channels'
4
5type Use<K extends keyof VideoChannelSyncModel, M> = PickWith<VideoChannelSyncModel, K, M>
6
7export type MChannelSync = Omit<VideoChannelSyncModel, 'VideoChannel'>
8
9export type MChannelSyncChannel =
10 MChannelSync &
11 Use<'VideoChannel', MChannelAccountDefault> &
12 FunctionProperties<VideoChannelSyncModel>
13
14export type MChannelSyncFormattable =
15 FunctionProperties<MChannelSyncChannel> &
16 Use<'VideoChannel', MChannelFormattable> &
17 MChannelSync