diff options
Diffstat (limited to 'server/typings/models/video/video-rate.ts')
-rw-r--r-- | server/typings/models/video/video-rate.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/server/typings/models/video/video-rate.ts b/server/typings/models/video/video-rate.ts index 6eefe6362..fc9329993 100644 --- a/server/typings/models/video/video-rate.ts +++ b/server/typings/models/video/video-rate.ts | |||
@@ -2,11 +2,15 @@ import { AccountVideoRateModel } from '@server/models/account/account-video-rate | |||
2 | import { PickWith } from '@server/typings/utils' | 2 | import { PickWith } from '@server/typings/utils' |
3 | import { MAccountAudience, MAccountUrl, MVideo } from '..' | 3 | import { MAccountAudience, MAccountUrl, MVideo } from '..' |
4 | 4 | ||
5 | type Use<K extends keyof AccountVideoRateModel, M> = PickWith<AccountVideoRateModel, K, M> | ||
6 | |||
7 | // ############################################################################ | ||
8 | |||
5 | export type MAccountVideoRate = Omit<AccountVideoRateModel, 'Video' | 'Account'> | 9 | export type MAccountVideoRate = Omit<AccountVideoRateModel, 'Video' | 'Account'> |
6 | 10 | ||
7 | export type MAccountVideoRateAccountUrl = MAccountVideoRate & | 11 | export type MAccountVideoRateAccountUrl = MAccountVideoRate & |
8 | PickWith<AccountVideoRateModel, 'Account', MAccountUrl> | 12 | Use<'Account', MAccountUrl> |
9 | 13 | ||
10 | export type MAccountVideoRateAccountVideo = MAccountVideoRate & | 14 | export type MAccountVideoRateAccountVideo = MAccountVideoRate & |
11 | PickWith<AccountVideoRateModel, 'Account', MAccountAudience> & | 15 | Use<'Account', MAccountAudience> & |
12 | PickWith<AccountVideoRateModel, 'Video', MVideo> | 16 | Use<'Video', MVideo> |