1
0
Fork 0
peertube/server/typings/models/video/video-rate.ts
2019-08-19 17:26:35 +02:00

12 lines
574 B
TypeScript

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>