Return Uint8ClampedArray in resize operation

This commit is contained in:
ergunsh
2021-06-08 20:28:22 +02:00
parent a18ed360eb
commit 5707eeff41
7 changed files with 40 additions and 21 deletions

View File

@@ -18,6 +18,11 @@ declare module 'asset-url:../../codecs/oxipng/pkg/squoosh_oxipng_bg.wasm' {
export default value;
}
declare module 'asset-url:../../codecs/resize/pkg/squoosh_resize_bg.wasm' {
const value: string;
export default value;
}
// These don't exist in NodeJS types so we're not able to use them but they are referenced in some emscripten and codec types
// Thus, we need to explicitly assign them to be `never`
// We're also not able to use the APIs that use these types