]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/typings/models/video/video-streaming-playlist.ts
Fix ownership change
[github/Chocobozzz/PeerTube.git] / server / typings / models / video / video-streaming-playlist.ts
CommitLineData
453e83ea
C
1import { VideoStreamingPlaylistModel } from '../../../models/video/video-streaming-playlist'
2import { PickWith } from '../../utils'
3import { MVideoRedundancyFileUrl } from './video-redundancy'
4import { MVideo } from '@server/typings/models'
5
0283eaac
C
6type Use<K extends keyof VideoStreamingPlaylistModel, M> = PickWith<VideoStreamingPlaylistModel, K, M>
7
8// ############################################################################
9
453e83ea
C
10export type MStreamingPlaylist = Omit<VideoStreamingPlaylistModel, 'Video' | 'RedundancyVideos'>
11
12export type MStreamingPlaylistVideo = MStreamingPlaylist &
0283eaac 13 Use<'Video', MVideo>
453e83ea
C
14
15export type MStreamingPlaylistRedundancies = MStreamingPlaylist &
0283eaac 16 Use<'RedundancyVideos', MVideoRedundancyFileUrl[]>