Skip to content

Commit

Permalink
Make postMessage's 2nd param, targetOrigin, optional (microsoft#672)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandersn committed Apr 3, 2019
1 parent 5831c2d commit 893e5ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17100,7 +17100,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
moveTo(x: number, y: number): void;
msWriteProfilerMark(profilerMarkName: string): void;
open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;
postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
postMessage(message: any, targetOrigin?: string, transfer?: Transferable[]): void;
print(): void;
prompt(message?: string, _default?: string): string | null;
/** @deprecated */
Expand Down Expand Up @@ -18095,7 +18095,7 @@ declare function moveBy(x: number, y: number): void;
declare function moveTo(x: number, y: number): void;
declare function msWriteProfilerMark(profilerMarkName: string): void;
declare function open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;
declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
declare function postMessage(message: any, targetOrigin?: string, transfer?: Transferable[]): void;
declare function print(): void;
declare function prompt(message?: string, _default?: string): string | null;
/** @deprecated */
Expand Down
2 changes: 1 addition & 1 deletion inputfiles/overridingTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@
"postMessage": {
"name": "postMessage",
"override-signatures": [
"postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void"
"postMessage(message: any, targetOrigin?: string, transfer?: Transferable[]): void"
]
}
}
Expand Down

0 comments on commit 893e5ad

Please sign in to comment.