Correct typing of CAF message custom data properties

This commit is contained in:
Matthew Haughton 2024-11-11 22:38:42 +11:00
parent 4c785f4553
commit 028e635f71

10
src/types/global.d.ts vendored
View File

@ -106,16 +106,16 @@ declare global {
declare module 'chromecast-caf-receiver/cast.framework.messages' {
interface MediaInformationCustomData {
audioStreamIndex: string;
audioStreamIndex: number | null;
canClientSeek: boolean;
canSeek: boolean;
itemId: string | undefined;
liveStreamId: number;
mediaSourceId: number;
liveStreamId: string | null;
mediaSourceId: string | null;
playMethod: 'DirectStream' | 'Transcode';
playSessionId: string;
runtimeTicks: number;
runtimeTicks: number | null;
startPositionTicks: number;
subtitleStreamIndex: number;
subtitleStreamIndex: number | null;
}
}