Add initial ts setup for libsquoosh

Convert `image_data` to typescript as an example
This commit is contained in:
ergunsh
2021-05-31 21:38:16 +02:00
parent 31b263fc27
commit 30445927ea
8 changed files with 360 additions and 11 deletions

View File

@@ -0,0 +1,11 @@
export default class ImageData {
readonly data: Uint8ClampedArray;
readonly width: number;
readonly height: number;
constructor(data: Uint8ClampedArray, width: number, height: number) {
this.data = data;
this.width = width;
this.height = height;
}
}