Skip to content

Commit 51660e6

Browse files
committed
allow window.name to be string
1 parent c7e8908 commit 51660e6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

baselines/dom.generated.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18407,14 +18407,14 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1840718407
readonly scrollX: number;
1840818408
readonly scrollY: number;
1840918409
readonly scrollbars: BarProp;
18410-
readonly self: typeof globalThis;
18410+
readonly self: (typeof globalThis) & { name: string };
1841118411
readonly speechSynthesis: SpeechSynthesis;
1841218412
status: string;
1841318413
readonly statusbar: BarProp;
1841418414
readonly styleMedia: StyleMedia;
1841518415
readonly toolbar: BarProp;
1841618416
readonly top: Window;
18417-
readonly window: typeof globalThis;
18417+
readonly window: (typeof globalThis) & { name: string };
1841818418
alert(message?: any): void;
1841918419
blur(): void;
1842018420
/** @deprecated */
@@ -19396,14 +19396,14 @@ declare var screenY: number;
1939619396
declare var scrollX: number;
1939719397
declare var scrollY: number;
1939819398
declare var scrollbars: BarProp;
19399-
declare var self: typeof globalThis;
19399+
declare var self: (typeof globalThis) & { name: string };
1940019400
declare var speechSynthesis: SpeechSynthesis;
1940119401
declare var status: string;
1940219402
declare var statusbar: BarProp;
1940319403
declare var styleMedia: StyleMedia;
1940419404
declare var toolbar: BarProp;
1940519405
declare var top: Window;
19406-
declare var window: typeof globalThis;
19406+
declare var window: (typeof globalThis) & { name: string };
1940719407
declare function alert(message?: any): void;
1940819408
declare function blur(): void;
1940919409
/** @deprecated */

inputfiles/overridingTypes.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,10 @@
452452
"read-only": 0
453453
},
454454
"self": {
455-
"override-type": "typeof globalThis"
455+
"override-type": "(typeof globalThis) & { name: string }"
456456
},
457457
"window": {
458-
"override-type": "typeof globalThis"
458+
"override-type": "(typeof globalThis) & { name: string }"
459459
}
460460
}
461461
},

0 commit comments

Comments
 (0)