Skip to content

Commit ee39b6d

Browse files
fix#6418
This request fix [window.open return type](microsoft/TypeScript#6418) issue.
1 parent 9951366 commit ee39b6d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11977,7 +11977,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1197711977
msMatchMedia(mediaQuery: string): MediaQueryList;
1197811978
msRequestAnimationFrame(callback: FrameRequestCallback): number;
1197911979
msWriteProfilerMark(profilerMarkName: string): void;
11980-
open(url?: string, target?: string, features?: string, replace?: boolean): any;
11980+
open(url?: string, target?: string, features?: string, replace?: boolean): Window;
1198111981
postMessage(message: any, targetOrigin: string, ports?: any): void;
1198211982
print(): void;
1198311983
prompt(message?: string, _default?: string): string;

inputfiles/overridingTypes.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,5 +295,11 @@
295295
"interface": "IDBDatabase",
296296
"name": "version",
297297
"type": "number"
298+
},
299+
{
300+
"kind": "method",
301+
"interface": "Window",
302+
"name": "open",
303+
"signatures": ["open(url?: string, target?: string, features?: string, replace?: boolean): Window"]
298304
}
299305
]

0 commit comments

Comments
 (0)