Skip to content

Commit 53c94d1

Browse files
committed
Add number index signature to Window
It is `[n: number]: Window`.
1 parent 3404430 commit 53c94d1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17050,6 +17050,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1705017050
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1705117051
removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1705217052
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
17053+
[index: number]: Window;
1705317054
}
1705417055

1705517056
declare var Window: {

inputfiles/addedTypes.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,9 @@
517517
},
518518
"implements": [
519519
"WindowEventHandlers"
520+
],
521+
"override-index-signatures": [
522+
"[index: number]: Window"
520523
]
521524
},
522525
"URLSearchParams": {

0 commit comments

Comments
 (0)