From 51b34a11b298b466faef9c8d24beec4442d7add3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 6 Jan 2020 13:06:13 +0100 Subject: Share playlists state --- .../videos/playlist/video-exist-in-playlist.model.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'shared/models/videos') diff --git a/shared/models/videos/playlist/video-exist-in-playlist.model.ts b/shared/models/videos/playlist/video-exist-in-playlist.model.ts index 1b57257e2..fc979c8c0 100644 --- a/shared/models/videos/playlist/video-exist-in-playlist.model.ts +++ b/shared/models/videos/playlist/video-exist-in-playlist.model.ts @@ -1,8 +1,10 @@ +export type VideosExistInPlaylists = { + [videoId: number ]: VideoExistInPlaylist[] +} + export type VideoExistInPlaylist = { - [videoId: number ]: { - playlistElementId: number - playlistId: number - startTimestamp?: number - stopTimestamp?: number - }[] + playlistElementId: number + playlistId: number + startTimestamp?: number + stopTimestamp?: number } -- cgit v1.2.3