Skip to content

Commit

Permalink
Fix PlaybackState typing
Browse files Browse the repository at this point in the history
  • Loading branch information
3flex committed Nov 26, 2024
1 parent 06aec31 commit 33a06d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/playbackManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ import type { ItemIndex, PlayRequest } from '~/types/global';
export interface PlaybackState {
startPositionTicks: number;
mediaType: string | null | undefined;
itemId: string;
itemId: string | undefined;

audioStreamIndex: number | null;
subtitleStreamIndex: number | null;
mediaSource: MediaSourceInfo | null;
mediaSourceId: string;
mediaSourceId: string | null;
PlaybackMediaSource: MediaSourceInfo | null;

playMethod: PlayMethod | undefined;
Expand All @@ -45,10 +45,10 @@ export interface PlaybackState {
playNextItemBool: boolean;

item: BaseItemDto | null;
liveStreamId: string;
liveStreamId: string | null;
playSessionId: string;

runtimeTicks: number;
runtimeTicks: number | null;
}

// eslint-disable-next-line @typescript-eslint/no-extraneous-class
Expand Down

0 comments on commit 33a06d4

Please sign in to comment.