PeerTube/server/typings/models/video/video-change-ownership.ts

11 lines
602 B
TypeScript
Raw Normal View History

2019-08-15 04:53:26 -05:00
import { VideoChangeOwnershipModel } from '@server/models/video/video-change-ownership'
import { PickWith } from '@server/typings/utils'
import { MAccountDefault, MVideoWithFileThumbnail } from '@server/typings/models'
export type MVideoChangeOwnership = Omit<VideoChangeOwnershipModel, 'Initiator' | 'NextOwner' | 'Video'>
export type MVideoChangeOwnershipFull = MVideoChangeOwnership &
PickWith<VideoChangeOwnershipModel, 'Initiator', MAccountDefault> &
PickWith<VideoChangeOwnershipModel, 'NextOwner', MAccountDefault> &
PickWith<VideoChangeOwnershipModel, 'Video', MVideoWithFileThumbnail>