UNPKG

@aigamo/hydrangean-diva

Version:

An open-source online media player that can be deployed to and hosted on GitHub pages.

27 lines (26 loc) 1.19 kB
import { IPlaylistListItemStore } from '../../media-player.playlists.abstractions/interfaces/IPlaylistListItemStore'; import { IPlaylistListStore } from '../../media-player.playlists.abstractions/interfaces/IPlaylistListStore'; import { IStateStore } from '@aigamo/route-sphere'; interface PlaylistListLocalStorageState { items?: { id: string; name: string; }[]; } declare class PlaylistListLocalStorageStateStore implements IStateStore<PlaylistListLocalStorageState> { private readonly playlistList; constructor(playlistList: PlaylistListStore); get state(): PlaylistListLocalStorageState; set state(value: PlaylistListLocalStorageState); validateState(state: unknown): state is PlaylistListLocalStorageState; } export declare class PlaylistListStore implements IPlaylistListStore { readonly localStorageState: PlaylistListLocalStorageStateStore; items: IPlaylistListItemStore[]; constructor(); createItem(name: string): IPlaylistListItemStore; setItems(value: IPlaylistListItemStore[]): void; addItem(item: IPlaylistListItemStore): Promise<void>; removeItem(item: IPlaylistListItemStore): Promise<void>; } export {};