@types/web 0.0.186 → 0.0.187

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
47
47
 
48
48
  ## Deploy Metadata
49
49
 
50
- You can read what changed in version 0.0.186 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.186.
50
+ You can read what changed in version 0.0.187 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.187.
package/index.d.ts CHANGED
@@ -10412,14 +10412,14 @@ interface HTMLCanvasElement extends HTMLElement {
10412
10412
  getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
10413
10413
  getContext(contextId: string, options?: any): RenderingContext | null;
10414
10414
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toBlob) */
10415
- toBlob(callback: BlobCallback, type?: string, quality?: any): void;
10415
+ toBlob(callback: BlobCallback, type?: string, quality?: number): void;
10416
10416
  /**
10417
10417
  * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
10418
10418
  * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
10419
10419
  *
10420
10420
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toDataURL)
10421
10421
  */
10422
- toDataURL(type?: string, quality?: any): string;
10422
+ toDataURL(type?: string, quality?: number): string;
10423
10423
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen) */
10424
10424
  transferControlToOffscreen(): OffscreenCanvas;
10425
10425
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.186",
3
+ "version": "0.0.187",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -10400,14 +10400,14 @@ interface HTMLCanvasElement extends HTMLElement {
10400
10400
  getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
10401
10401
  getContext(contextId: string, options?: any): RenderingContext | null;
10402
10402
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toBlob) */
10403
- toBlob(callback: BlobCallback, type?: string, quality?: any): void;
10403
+ toBlob(callback: BlobCallback, type?: string, quality?: number): void;
10404
10404
  /**
10405
10405
  * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
10406
10406
  * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
10407
10407
  *
10408
10408
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toDataURL)
10409
10409
  */
10410
- toDataURL(type?: string, quality?: any): string;
10410
+ toDataURL(type?: string, quality?: number): string;
10411
10411
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen) */
10412
10412
  transferControlToOffscreen(): OffscreenCanvas;
10413
10413
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;