diff options
Diffstat (limited to 'server/typings/models/video/video-caption.ts')
-rw-r--r-- | server/typings/models/video/video-caption.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/typings/models/video/video-caption.ts b/server/typings/models/video/video-caption.ts index 16d8b7392..fe0e664c2 100644 --- a/server/typings/models/video/video-caption.ts +++ b/server/typings/models/video/video-caption.ts | |||
@@ -2,9 +2,15 @@ import { VideoCaptionModel } from '../../../models/video/video-caption' | |||
2 | import { PickWith } from '@server/typings/utils' | 2 | import { PickWith } from '@server/typings/utils' |
3 | import { VideoModel } from '@server/models/video/video' | 3 | import { VideoModel } from '@server/models/video/video' |
4 | 4 | ||
5 | type Use<K extends keyof VideoCaptionModel, M> = PickWith<VideoCaptionModel, K, M> | ||
6 | |||
7 | // ############################################################################ | ||
8 | |||
5 | export type MVideoCaption = Omit<VideoCaptionModel, 'Video'> | 9 | export type MVideoCaption = Omit<VideoCaptionModel, 'Video'> |
6 | 10 | ||
11 | // ############################################################################ | ||
12 | |||
7 | export type MVideoCaptionLanguage = Pick<MVideoCaption, 'language'> | 13 | export type MVideoCaptionLanguage = Pick<MVideoCaption, 'language'> |
8 | 14 | ||
9 | export type MVideoCaptionVideo = MVideoCaption & | 15 | export type MVideoCaptionVideo = MVideoCaption & |
10 | PickWith<VideoCaptionModel, 'Video', Pick<VideoModel, 'id' | 'remote' | 'uuid'>> | 16 | Use<'Video', Pick<VideoModel, 'id' | 'remote' | 'uuid'>> |