PeerTube/server/typings/models/video/video-share.ts

13 lines
444 B
TypeScript
Raw Normal View History

2019-08-15 11:53:26 +02:00
import { VideoShareModel } from '../../../models/video/video-share'
import { PickWith } from '../../utils'
import { MActorDefault } from '../account'
import { MVideo } from './video'
export type MVideoShare = Omit<VideoShareModel, 'Actor' | 'Video'>
export type MVideoShareActor = MVideoShare &
PickWith<VideoShareModel, 'Actor', MActorDefault>
export type MVideoShareFull = MVideoShareActor &
PickWith<VideoShareModel, 'Video', MVideo>