Skip to content

Commit 3bcde46

Browse files
committed
Add numeric indexer to HTMLElementCollection
1 parent d3c70ef commit 3bcde46

File tree

1 file changed

+43
-43
lines changed

1 file changed

+43
-43
lines changed

src/lib/dom.generated.d.ts

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1865,30 +1865,25 @@ declare var Window: {
18651865
new(): Window;
18661866
}
18671867

1868-
interface FormData {
1869-
append(name: any, value: any, blobName?: string): void;
1870-
}
1871-
declare var FormData: {
1872-
prototype: FormData;
1873-
new (form?: HTMLFormElement): FormData;
1874-
}
1875-
1876-
interface SourceBuffer extends EventTarget {
1877-
updating: boolean;
1878-
appendWindowStart: number;
1879-
appendWindowEnd: number;
1880-
buffered: TimeRanges;
1881-
timestampOffset: number;
1882-
audioTracks: AudioTrackList;
1883-
appendBuffer(data: ArrayBufferView): void;
1884-
appendBuffer(data: ArrayBuffer): void;
1885-
remove(start: number, end: number): void;
1886-
abort(): void;
1887-
appendStream(stream: MSStream, maxSize?: number): void;
1868+
interface HTMLCollection extends MSHTMLCollectionExtensions {
1869+
/**
1870+
* Sets or retrieves the number of objects in a collection.
1871+
*/
1872+
length: number;
1873+
/**
1874+
* Retrieves an object from various collections.
1875+
*/
1876+
item(nameOrIndex?: any, optionalIndex?: any): Element;
1877+
/**
1878+
* Retrieves a select object or an object from an options collection.
1879+
*/
1880+
namedItem(name: string): Element;
1881+
// [name: string]: Element;
1882+
[index: number]: Element;
18881883
}
1889-
declare var SourceBuffer: {
1890-
prototype: SourceBuffer;
1891-
new(): SourceBuffer;
1884+
declare var HTMLCollection: {
1885+
prototype: HTMLCollection;
1886+
new(): HTMLCollection;
18921887
}
18931888

18941889
interface NavigatorID {
@@ -3797,26 +3792,6 @@ declare var MSCSSProperties: {
37973792
new(): MSCSSProperties;
37983793
}
37993794

3800-
interface HTMLCollection extends MSHTMLCollectionExtensions {
3801-
/**
3802-
* Sets or retrieves the number of objects in a collection.
3803-
*/
3804-
length: number;
3805-
/**
3806-
* Retrieves an object from various collections.
3807-
*/
3808-
item(nameOrIndex?: any, optionalIndex?: any): Element;
3809-
/**
3810-
* Retrieves a select object or an object from an options collection.
3811-
*/
3812-
namedItem(name: string): Element;
3813-
// [name: string]: Element;
3814-
}
3815-
declare var HTMLCollection: {
3816-
prototype: HTMLCollection;
3817-
new(): HTMLCollection;
3818-
}
3819-
38203795
interface SVGExternalResourcesRequired {
38213796
externalResourcesRequired: SVGAnimatedBoolean;
38223797
}
@@ -10222,6 +10197,14 @@ declare var MSManipulationEvent: {
1022210197
MS_MANIPULATION_STATE_CANCELLED: number;
1022310198
}
1022410199

10200+
interface FormData {
10201+
append(name: any, value: any, blobName?: string): void;
10202+
}
10203+
declare var FormData: {
10204+
prototype: FormData;
10205+
new(): FormData;
10206+
}
10207+
1022510208
interface HTMLDataListElement extends HTMLElement {
1022610209
options: HTMLCollection;
1022710210
}
@@ -10640,6 +10623,23 @@ interface RandomSource {
1064010623
getRandomValues(array: ArrayBufferView): ArrayBufferView;
1064110624
}
1064210625

10626+
interface SourceBuffer extends EventTarget {
10627+
updating: boolean;
10628+
appendWindowStart: number;
10629+
appendWindowEnd: number;
10630+
buffered: TimeRanges;
10631+
timestampOffset: number;
10632+
audioTracks: AudioTrackList;
10633+
appendBuffer(data: ArrayBuffer): void;
10634+
remove(start: number, end: number): void;
10635+
abort(): void;
10636+
appendStream(stream: MSStream, maxSize?: number): void;
10637+
}
10638+
declare var SourceBuffer: {
10639+
prototype: SourceBuffer;
10640+
new(): SourceBuffer;
10641+
}
10642+
1064310643
interface MSInputMethodContext extends EventTarget {
1064410644
oncandidatewindowshow: (ev: any) => any;
1064510645
target: HTMLElement;

0 commit comments

Comments
 (0)