Skip to content

Commit

Permalink
Fix microsoft#4220: Fix ImageData Constructor Signature in ES6 Browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
jteplitz committed Aug 7, 2015
1 parent 2f92483 commit 43cf3b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/lib.es6.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12066,7 +12066,8 @@ interface ImageData {

declare var ImageData: {
prototype: ImageData;
new(): ImageData;
new(width: number, height: number): ImageData;
new(array: Uint8ClampedArray, width: number, height: number): ImageData;
}

interface KeyboardEvent extends UIEvent {
Expand Down
5 changes: 3 additions & 2 deletions lib/lib.webworker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2927,7 +2927,8 @@ interface ImageData {

declare var ImageData: {
prototype: ImageData;
new(): ImageData;
new(width: number, height: number): ImageData;
new(array: Uint8ClampedArray, width: number, height: number): ImageData;
}

interface MSApp {
Expand Down Expand Up @@ -3354,4 +3355,4 @@ declare function postMessage(data: any): void;
declare var console: Console;
declare function addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
declare function addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;

0 comments on commit 43cf3b3

Please sign in to comment.