Skip to content

Commit e48f359

Browse files
committed
Fix microsoft/TypeScript#22917: Add Window.print
1 parent 1a434a1 commit e48f359

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

baselines/dom.generated.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15063,6 +15063,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
1506315063
msWriteProfilerMark(profilerMarkName: string): void;
1506415064
open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;
1506515065
postMessage(message: any, targetOrigin: string, transfer?: any[]): void;
15066+
print(): void;
1506615067
prompt(message?: string, _default?: string): string | null;
1506715068
releaseEvents(): void;
1506815069
requestAnimationFrame(callback: FrameRequestCallback): number;
@@ -15872,6 +15873,7 @@ declare function moveTo(x?: number, y?: number): void;
1587215873
declare function msWriteProfilerMark(profilerMarkName: string): void;
1587315874
declare function open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;
1587415875
declare function postMessage(message: any, targetOrigin: string, transfer?: any[]): void;
15876+
declare function print(): void;
1587515877
declare function prompt(message?: string, _default?: string): string | null;
1587615878
declare function releaseEvents(): void;
1587715879
declare function requestAnimationFrame(callback: FrameRequestCallback): number;

inputfiles/addedTypes.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,12 @@
291291
"additional-signatures": [
292292
"scrollBy(options?: ScrollToOptions): void"
293293
]
294+
},
295+
"print": {
296+
"name": "print",
297+
"override-signatures": [
298+
"print(): void"
299+
]
294300
}
295301
}
296302
},

0 commit comments

Comments
 (0)