diff options
Diffstat (limited to 'server/typings/models/video/video-rate.ts')
-rw-r--r-- | server/typings/models/video/video-rate.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/server/typings/models/video/video-rate.ts b/server/typings/models/video/video-rate.ts new file mode 100644 index 000000000..6eefe6362 --- /dev/null +++ b/server/typings/models/video/video-rate.ts | |||
@@ -0,0 +1,12 @@ | |||
1 | import { AccountVideoRateModel } from '@server/models/account/account-video-rate' | ||
2 | import { PickWith } from '@server/typings/utils' | ||
3 | import { MAccountAudience, MAccountUrl, MVideo } from '..' | ||
4 | |||
5 | export type MAccountVideoRate = Omit<AccountVideoRateModel, 'Video' | 'Account'> | ||
6 | |||
7 | export type MAccountVideoRateAccountUrl = MAccountVideoRate & | ||
8 | PickWith<AccountVideoRateModel, 'Account', MAccountUrl> | ||
9 | |||
10 | export type MAccountVideoRateAccountVideo = MAccountVideoRate & | ||
11 | PickWith<AccountVideoRateModel, 'Account', MAccountAudience> & | ||
12 | PickWith<AccountVideoRateModel, 'Video', MVideo> | ||