PeerTube/server/typings/models/video/video-streaming-playlist.ts

13 lines
610 B
TypeScript
Raw Normal View History

2019-08-15 11:53:26 +02:00
import { VideoStreamingPlaylistModel } from '../../../models/video/video-streaming-playlist'
import { PickWith } from '../../utils'
import { MVideoRedundancyFileUrl } from './video-redundancy'
import { MVideo } from '@server/typings/models'
export type MStreamingPlaylist = Omit<VideoStreamingPlaylistModel, 'Video' | 'RedundancyVideos'>
export type MStreamingPlaylistVideo = MStreamingPlaylist &
PickWith<VideoStreamingPlaylistModel, 'Video', MVideo>
export type MStreamingPlaylistRedundancies = MStreamingPlaylist &
PickWith<VideoStreamingPlaylistModel, 'RedundancyVideos', MVideoRedundancyFileUrl[]>