diff options
Diffstat (limited to 'server/typings/models/video/video-blacklist.ts')
-rw-r--r-- | server/typings/models/video/video-blacklist.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/typings/models/video/video-blacklist.ts b/server/typings/models/video/video-blacklist.ts index 9242b357d..cc539f95c 100644 --- a/server/typings/models/video/video-blacklist.ts +++ b/server/typings/models/video/video-blacklist.ts | |||
@@ -2,10 +2,16 @@ import { VideoBlacklistModel } from '../../../models/video/video-blacklist' | |||
2 | import { PickWith } from '@server/typings/utils' | 2 | import { PickWith } from '@server/typings/utils' |
3 | import { MVideo } from '@server/typings/models' | 3 | import { MVideo } from '@server/typings/models' |
4 | 4 | ||
5 | type Use<K extends keyof VideoBlacklistModel, M> = PickWith<VideoBlacklistModel, K, M> | ||
6 | |||
7 | // ############################################################################ | ||
8 | |||
5 | export type MVideoBlacklist = Omit<VideoBlacklistModel, 'Video'> | 9 | export type MVideoBlacklist = Omit<VideoBlacklistModel, 'Video'> |
6 | 10 | ||
7 | export type MVideoBlacklistLight = Pick<MVideoBlacklist, 'id' | 'reason' | 'unfederated'> | 11 | export type MVideoBlacklistLight = Pick<MVideoBlacklist, 'id' | 'reason' | 'unfederated'> |
8 | export type MVideoBlacklistUnfederated = Pick<MVideoBlacklist, 'unfederated'> | 12 | export type MVideoBlacklistUnfederated = Pick<MVideoBlacklist, 'unfederated'> |
9 | 13 | ||
14 | // ############################################################################ | ||
15 | |||
10 | export type MVideoBlacklistVideo = MVideoBlacklist & | 16 | export type MVideoBlacklistVideo = MVideoBlacklist & |
11 | PickWith<VideoBlacklistModel, 'Video', MVideo> | 17 | Use<'Video', MVideo> |