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

12 lines
511 B
TypeScript
Raw Normal View History

2019-08-15 04:53:26 -05:00
import { VideoBlacklistModel } from '../../../models/video/video-blacklist'
import { PickWith } from '@server/typings/utils'
import { MVideo } from '@server/typings/models'
export type MVideoBlacklist = Omit<VideoBlacklistModel, 'Video'>
export type MVideoBlacklistLight = Pick<MVideoBlacklist, 'id' | 'reason' | 'unfederated'>
export type MVideoBlacklistUnfederated = Pick<MVideoBlacklist, 'unfederated'>
export type MVideoBlacklistVideo = MVideoBlacklist &
PickWith<VideoBlacklistModel, 'Video', MVideo>