mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-13 17:27:09 +00:00
Make TS happy
This commit is contained in:
@@ -252,7 +252,7 @@ export async function builtinDecode(
|
||||
assertSignal(signal);
|
||||
|
||||
// Prefer createImageBitmap as it's the off-thread option for Firefox.
|
||||
const drawable = await abortable(
|
||||
const drawable = await abortable<HTMLImageElement | ImageBitmap>(
|
||||
signal,
|
||||
'createImageBitmap' in self ? createImageBitmap(blob) : blobToImg(blob),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user