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

19 lines
457 B
TypeScript
Raw Normal View History

2020-01-06 13:06:13 +01:00
export type VideosExistInPlaylists = {
[videoId: number ]: VideoExistInPlaylist[]
}
export type CachedVideosExistInPlaylists = {
[videoId: number ]: CachedVideoExistInPlaylist[]
}
2020-01-06 13:06:13 +01:00
export type CachedVideoExistInPlaylist = {
2020-01-06 13:06:13 +01:00
playlistElementId: number
playlistId: number
startTimestamp?: number
stopTimestamp?: number
2019-03-07 17:06:00 +01:00
}
export type VideoExistInPlaylist = CachedVideoExistInPlaylist & {
playlistDisplayName: string
playlistShortUUID: string
}