aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/types/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-15 14:08:16 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-02-16 10:36:44 +0100
commit6302d599cdf98b5a5363a2a1dcdc266447950191 (patch)
treeb7dc6dc0f08f0fb8a20720242c9c0a71afeeaa3f /server/types/models
parenta8b1b40485145ac1eae513a661d7dd6e0986ce96 (diff)
downloadPeerTube-6302d599cdf98b5a5363a2a1dcdc266447950191.tar.gz
PeerTube-6302d599cdf98b5a5363a2a1dcdc266447950191.tar.zst
PeerTube-6302d599cdf98b5a5363a2a1dcdc266447950191.zip
Generate a name for caption files
Diffstat (limited to 'server/types/models')
-rw-r--r--server/types/models/video/video-caption.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/types/models/video/video-caption.ts b/server/types/models/video/video-caption.ts
index ab80ff830..1f761a866 100644
--- a/server/types/models/video/video-caption.ts
+++ b/server/types/models/video/video-caption.ts
@@ -1,5 +1,5 @@
1import { PickWith } from '@shared/core-utils'
1import { VideoCaptionModel } from '../../../models/video/video-caption' 2import { VideoCaptionModel } from '../../../models/video/video-caption'
2import { FunctionProperties, PickWith } from '@shared/core-utils'
3import { MVideo, MVideoUUID } from './video' 3import { MVideo, MVideoUUID } from './video'
4 4
5type Use<K extends keyof VideoCaptionModel, M> = PickWith<VideoCaptionModel, K, M> 5type Use<K extends keyof VideoCaptionModel, M> = PickWith<VideoCaptionModel, K, M>
@@ -22,6 +22,6 @@ export type MVideoCaptionVideo =
22// Format for API or AP object 22// Format for API or AP object
23 23
24export type MVideoCaptionFormattable = 24export type MVideoCaptionFormattable =
25 FunctionProperties<MVideoCaption> & 25 MVideoCaption &
26 Pick<MVideoCaption, 'language'> & 26 Pick<MVideoCaption, 'language'> &
27 Use<'Video', MVideoUUID> 27 Use<'Video', MVideoUUID>