/** Represents a read-only list of timed metadata tracks. */
declare class MediaPlaybackTimedMetadataTrackList extends Array {
/** Returns an iterator that iterates over the items in the collection. */
first(): Windows.Foundation.Collections.IIterator;
/** Returns the timed metadata track at the specified index. */
getAt(index: number): Windows.Media.Core.TimedMetadataTrack;
/** Retrieves the timed metadata tracks that start at the specified index in the list. */
getMany(startIndex: number): { /** The timed metadata tracks that start at startIndex in the list. */ items: Windows.Media.Core.TimedMetadataTrack; /** Retrieves the timed metadata tracks that start at the specified index in the list. */ returnValue: number; };
/** Gets the presentation mode of the timed metadata track with the specified index. */
getPresentationMode(index: number): Windows.Media.Playback.TimedMetadataTrackPresentationMode;
/** Retrieves the index of a specified timed metadata track in the list. */
indexOf(value: Windows.Media.Core.TimedMetadataTrack): { /** If the timed metadata track is found, this is the zero-based index of the audio track; otherwise, this parameter is 0. */ index: number; /** True if the timed metadata track is found; otherwise, false. */ returnValue: boolean; };
/** Occurs when the presentation mode of the MediaPlaybackTimedMetadataTrackList changes. */
onpresentationmodechanged: (ev: Windows.Foundation.TypedEventHandler) => any;
addEventListener(type: "presentationmodechanged", listener: (ev: Windows.Foundation.TypedEventHandler) => any): void;
removeEventListener(type: "presentationmodechanged", listener: (ev: Windows.Foundation.TypedEventHandler) => any): void;
/** Sets the presentation mode of the timed metadata track with the specified index. */
setPresentationMode(index: number, value: Windows.Media.Playback.TimedMetadataTrackPresentationMode): void;
/** Gets the number of timed metadata tracks in the list. */
size: number;
addEventListener(type: string, listener: EventListenerOrEventListenerObject): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject): void;
}
This is the current type definition generated by script. This class has Array in its prototype chain and it have its own indexOf method whose signature conflicts with Array.indexOf. This confliction makes the compiler keep complaining and I need to make it silent. Is there a known way to make this work?
A solution here have to indicate that the class inherits from Array.
Note: I cannot modify the semantics as this is one of the current UWP APIs.