File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ export class RawImageData implements ImageData {
6161 * The RGBA image data.
6262 */
6363
64- data : Uint8ClampedArray ;
64+ data : Uint8ClampedArray < ArrayBuffer > ;
6565
6666 /**
6767 * Constructs a new image data container.
@@ -71,7 +71,7 @@ export class RawImageData implements ImageData {
7171 * @param data - The image data.
7272 */
7373
74- constructor ( width = 0 , height = 0 , data : Uint8ClampedArray ) {
74+ constructor ( width = 0 , height = 0 , data : Uint8ClampedArray < ArrayBuffer > ) {
7575
7676 this . colorSpace = "srgb" ;
7777 this . width = width ;
@@ -108,7 +108,7 @@ export class RawImageData implements ImageData {
108108 static from ( image : ImageData | HTMLImageElement ) : RawImageData {
109109
110110 const { width, height } = image ;
111- let data : Uint8ClampedArray ;
111+ let data : Uint8ClampedArray < ArrayBuffer > ;
112112
113113 if ( image instanceof Image ) {
114114
You can’t perform that action at this time.
0 commit comments