mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix ImageData constructor
This commit is contained in:
Vendored
+4
@@ -8,4 +8,8 @@ interface NodeList {
|
||||
|
||||
interface NodeListOf<TNode extends Node> {
|
||||
[Symbol.iterator](): IterableIterator<TNode>
|
||||
}
|
||||
|
||||
interface ImageData {
|
||||
new(array: Uint8ClampedArray, width: number, height: number): ImageData;
|
||||
}
|
||||
Vendored
+3
-5
@@ -7014,12 +7014,10 @@ interface ImageData {
|
||||
data: number[];
|
||||
height: number;
|
||||
width: number;
|
||||
new(width: number, height: number): ImageData;
|
||||
}
|
||||
|
||||
declare var ImageData: {
|
||||
prototype: ImageData;
|
||||
new(): ImageData;
|
||||
}
|
||||
declare var ImageData: ImageData;
|
||||
|
||||
interface KeyboardEvent extends UIEvent {
|
||||
altKey: boolean;
|
||||
@@ -12952,4 +12950,4 @@ declare function addEventListener(type: "unload", listener: (ev: Event) => any,
|
||||
declare function addEventListener(type: "volumechange", listener: (ev: Event) => any, useCapture?: boolean): void;
|
||||
declare function addEventListener(type: "waiting", listener: (ev: Event) => any, useCapture?: boolean): void;
|
||||
declare function addEventListener(type: "wheel", listener: (ev: WheelEvent) => any, useCapture?: boolean): void;
|
||||
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
||||
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
||||
|
||||
Vendored
+3
-5
@@ -430,12 +430,10 @@ interface ImageData {
|
||||
data: number[];
|
||||
height: number;
|
||||
width: number;
|
||||
new(width: number, height: number): ImageData;
|
||||
}
|
||||
|
||||
declare var ImageData: {
|
||||
prototype: ImageData;
|
||||
new(): ImageData;
|
||||
}
|
||||
declare var ImageData: ImageData;
|
||||
|
||||
interface MSApp {
|
||||
clearTemporaryWebDataAsync(): MSAppAsyncOperation;
|
||||
@@ -861,4 +859,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;
|
||||
|
||||
Reference in New Issue
Block a user