Skip to content

Commit 9cfb31f

Browse files
committed
Update typescript
1 parent 4a80b36 commit 9cfb31f

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,6 @@
127127
"tiny-glob": "0.x.x",
128128
"tslib": "2.x.x",
129129
"tweakpane": "4.x.x",
130-
"typescript": "5.8.x"
130+
"typescript": "5.9.x"
131131
}
132132
}

src/textures/RawImageData.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @private
55
* @param {Number} width - The image width.
66
* @param {Number} height - The image height.
7-
* @param {Uint8ClampedArray|Image} data - The image data.
7+
* @param {Uint8ClampedArray<ArrayBuffer>|Image} data - The image data.
88
* @return {Canvas} The canvas.
99
*/
1010

@@ -45,7 +45,7 @@ export class RawImageData {
4545
*
4646
* @param {Number} [width=0] - The width of the image.
4747
* @param {Number} [height=0] - The height of the image.
48-
* @param {Uint8ClampedArray} [data=null] - The image data.
48+
* @param {Uint8ClampedArray<ArrayBuffer>} [data=null] - The image data.
4949
*/
5050

5151
constructor(width = 0, height = 0, data = null) {
@@ -69,7 +69,7 @@ export class RawImageData {
6969
/**
7070
* The RGBA image data.
7171
*
72-
* @type {Uint8ClampedArray}
72+
* @type {Uint8ClampedArray<ArrayBuffer>}
7373
*/
7474

7575
this.data = data;

types/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9089,9 +9089,9 @@ declare module "postprocessing" {
90899089
*
90909090
* @param {Number} [width=0] - The width of the image.
90919091
* @param {Number} [height=0] - The height of the image.
9092-
* @param {Uint8ClampedArray} [data=null] - The image data.
9092+
* @param {Uint8ClampedArray<ArrayBuffer>} [data=null] - The image data.
90939093
*/
9094-
constructor(width?: number, height?: number, data?: Uint8ClampedArray);
9094+
constructor(width?: number, height?: number, data?: Uint8ClampedArray<ArrayBuffer>);
90959095
colorSpace: PredefinedColorSpace;
90969096
/**
90979097
* The width of the image.
@@ -9108,9 +9108,9 @@ declare module "postprocessing" {
91089108
/**
91099109
* The RGBA image data.
91109110
*
9111-
* @type {Uint8ClampedArray}
9111+
* @type {Uint8ClampedArray<ArrayBuffer>}
91129112
*/
9113-
data: Uint8ClampedArray;
9113+
data: Uint8ClampedArray<ArrayBuffer>;
91149114
/**
91159115
* Creates a canvas from this image data.
91169116
*

0 commit comments

Comments
 (0)