Skip to content

Commit ce77ee6

Browse files
authored
TypeScript fixes for MediaSettings (Dash-Industry-Forum#4761)
* update type declaration for MediaSettings * fix * allow value and id as optional elements in DescriptorType
1 parent 6b9c4a7 commit ce77ee6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

index.d.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -758,9 +758,9 @@ declare namespace dashjs {
758758
dvbFontFamily?: string;
759759
dvbMimeType?: string;
760760
dvbUrl?: string;
761-
id: string;
761+
id?: string;
762762
schemeIdUri: string;
763-
value: string;
763+
value?: string;
764764
}
765765

766766
export interface Event {
@@ -2770,11 +2770,11 @@ declare namespace dashjs {
27702770
}
27712771

27722772
export interface MediaSettings {
2773-
accessibility?: any;
2774-
audioChannelConfiguration?: any[];
2775-
lang?: string;
2776-
role?: string;
2777-
viewpoint?: any;
2773+
accessibility?: DescriptorType | string;
2774+
audioChannelConfiguration?: DescriptorType | string;
2775+
lang?: RegExp | string;
2776+
role?: DescriptorType | string;
2777+
viewpoint?: DescriptorType | string;
27782778
}
27792779

27802780
export class serviceDescriptions {

0 commit comments

Comments
 (0)