1
0
Fork 0
peertube/server/typings/models/video/video-rate.ts

13 lines
574 B
TypeScript
Raw Normal View History

2019-08-15 05:53:26 -04:00
import { AccountVideoRateModel } from '@server/models/account/account-video-rate'
import { PickWith } from '@server/typings/utils'
import { MAccountAudience, MAccountUrl, MVideo } from '..'
export type MAccountVideoRate = Omit<AccountVideoRateModel, 'Video' | 'Account'>
export type MAccountVideoRateAccountUrl = MAccountVideoRate &
PickWith<AccountVideoRateModel, 'Account', MAccountUrl>
export type MAccountVideoRateAccountVideo = MAccountVideoRate &
PickWith<AccountVideoRateModel, 'Account', MAccountAudience> &
PickWith<AccountVideoRateModel, 'Video', MVideo>