PeerTube/shared/models/videos/playlist/video-exist-in-playlist.mod...

19 lines
455 B
TypeScript

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
}