mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
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:
Vendored
+1
-1
@@ -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 {
|
||||
|
||||
Vendored
+1
-1
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user