Fix liniting errors

This commit is contained in:
Klaus Reimer
2019-03-01 20:00:41 +01:00
parent dd14243978
commit 3764aa0195
+5 -3
View File
@@ -1,8 +1,10 @@
// Type definitions for non-npm package offscreencanvas-browser
// Type definitions for non-npm package offscreencanvas-browser 2019.3
// Project: https://html.spec.whatwg.org/multipage/canvas.html#the-offscreencanvas-interface
// Definitions by: Klaus Reimer <https://github.com/kayahr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.1
declare global {
// https://html.spec.whatwg.org/multipage/canvas.html#canvasdrawimage
interface CanvasDrawImage {
@@ -32,7 +34,7 @@ declare global {
var OffscreenCanvasRenderingContext2D: {
prototype: OffscreenCanvasRenderingContext2D;
new (): OffscreenCanvasRenderingContext2D;
}
};
// https://html.spec.whatwg.org/multipage/canvas.html#the-offscreencanvas-interface
interface OffscreenCanvas extends EventTarget {
@@ -49,7 +51,7 @@ declare global {
var OffscreenCanvas: {
prototype: OffscreenCanvas;
new (width: number, height: number): OffscreenCanvas;
}
};
}
export { };