diff --git a/global.d.ts b/global.d.ts index d6d78d4ed..0874353c2 100644 --- a/global.d.ts +++ b/global.d.ts @@ -75,6 +75,10 @@ declare global { searchTerm: string, limit?: number ) => Promise; + getNowPlayingPrograms: (options?: { + category?: string; + limit?: number; + }) => Promise; updateSettings: (settings: any) => Promise; getAiSettings: () => Promise<{ aiProvider: string; @@ -265,7 +269,9 @@ declare global { }) => void ) => void; // DB save content progress listener - onDbSaveContentProgress: (callback: (count: number) => void) => void; + onDbSaveContentProgress: ( + callback: (count: number) => void + ) => void; removeDbSaveContentProgress: () => void; dbDeleteAllPlaylists: () => Promise<{ success: boolean }>; // Playback positions @@ -286,15 +292,15 @@ declare global { playlistId: string, limit?: number ) => Promise; - dbGetAllPlaybackPositions: ( - playlistId: string - ) => Promise; + dbGetAllPlaybackPositions: (playlistId: string) => Promise; dbClearPlaybackPosition: ( playlistId: string, contentXtreamId: number, contentType: 'vod' | 'episode' ) => Promise<{ success: boolean }>; - onPlaybackPositionUpdate: (callback: (data: any) => void) => () => void; + onPlaybackPositionUpdate: ( + callback: (data: any) => void + ) => () => void; // Downloads downloadsStart: (data: { playlistId: string; @@ -314,7 +320,12 @@ declare global { episodeNumber?: number; // Playlist info for auto-creation if needed playlistName?: string; - playlistType?: 'xtream' | 'stalker' | 'm3u-file' | 'm3u-text' | 'm3u-url'; + playlistType?: + | 'xtream' + | 'stalker' + | 'm3u-file' + | 'm3u-text' + | 'm3u-url'; serverUrl?: string; portalUrl?: string; macAddress?: string;