Skip to content

Commit 6fa426d

Browse files
committed
Update RawImageData.ts
1 parent 4abac7e commit 6fa426d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/textures/RawImageData.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)