aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/types/models/video/video-live.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-09-17 09:20:52 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-11-09 15:33:04 +0100
commitc6c0fa6cd8fe8f752463d8982c3dbcd448739c4e (patch)
tree79304b0152b0a38d33b26e65d4acdad0da4032a7 /server/types/models/video/video-live.ts
parent110d463fece85e87a26aca48a6048ae0017a27b3 (diff)
downloadPeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.tar.gz
PeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.tar.zst
PeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.zip
Live streaming implementation first step
Diffstat (limited to 'server/types/models/video/video-live.ts')
-rw-r--r--server/types/models/video/video-live.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/server/types/models/video/video-live.ts b/server/types/models/video/video-live.ts
new file mode 100644
index 000000000..346052417
--- /dev/null
+++ b/server/types/models/video/video-live.ts
@@ -0,0 +1,15 @@
1import { VideoLiveModel } from '@server/models/video/video-live'
2import { PickWith } from '@shared/core-utils'
3import { MVideo } from './video'
4
5type Use<K extends keyof VideoLiveModel, M> = PickWith<VideoLiveModel, K, M>
6
7// ############################################################################
8
9export type MVideoLive = Omit<VideoLiveModel, 'Video'>
10
11// ############################################################################
12
13export type MVideoLiveVideo =
14 MVideoLive &
15 Use<'Video', MVideo>