Make ImageData(Uint8ClampedArray)'s 3rd param optional (#34519)

It can be inferred from the first two.

Fixes #33266

Baseline update from microsoft/TSJS-lib-generator#790
This commit is contained in:
Nathan Shively-Sanders 2019-10-17 11:14:07 -07:00 committed by GitHub
parent f41b7b59ce
commit 262ec6171d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -9762,7 +9762,7 @@ interface ImageData {
declare var ImageData: {
prototype: ImageData;
new(width: number, height: number): ImageData;
new(array: Uint8ClampedArray, width: number, height: number): ImageData;
new(array: Uint8ClampedArray, width: number, height?: number): ImageData;
};
interface InnerHTML {

View file

@ -2202,7 +2202,7 @@ interface ImageData {
declare var ImageData: {
prototype: ImageData;
new(width: number, height: number): ImageData;
new(array: Uint8ClampedArray, width: number, height: number): ImageData;
new(array: Uint8ClampedArray, width: number, height?: number): ImageData;
};
/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */