Chocobozzz/PeerTube

View on GitHub
packages/models/src/videos/playlist/video-exist-in-playlist.model.ts

Summary

Maintainability
A
0 mins
Test Coverage
export type VideosExistInPlaylists = {
  [videoId: number]: VideoExistInPlaylist[]
}
export type CachedVideosExistInPlaylists = {
  [videoId: number]: CachedVideoExistInPlaylist[]
}

export type CachedVideoExistInPlaylist = {
  playlistElementId: number
  playlistId: number
  startTimestamp?: number
  stopTimestamp?: number
}

export type VideoExistInPlaylist = CachedVideoExistInPlaylist & {
  playlistDisplayName: string
  playlistShortUUID: string
}