refactor(shared): extend playlist interfaces

This commit is contained in:
4gray committed 2023-06-18 15:45:22 +02:00
1 parent dc269b3076
commit 6345cd7908
2 files changed
+9 -3

No files matched your search

+6 -3
View File
@@ -13,11 +13,11 @@ export enum PlaylistUpdateState {
export interface Playlist {
_id: string;
title: string;
filename: string;
playlist: any;
filename?: string;
playlist?: any;
importDate: string;
lastUsage: string;
favorites: string[];
favorites?: string[];
items?: unknown[];
header?: unknown;
count: number;
@@ -29,4 +29,7 @@ export interface Playlist {
updateState?: PlaylistUpdateState;
position?: number;
isTemporary?: boolean;
serverUrl?: string;
username?: string;
password?: string;
}
+3
View File
@@ -15,4 +15,7 @@ export type PlaylistMeta = Pick<
| 'position'
| 'autoRefresh'
| 'favorites'
| 'serverUrl'
| 'username'
| 'password'
>;