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:
@@ -250,9 +250,9 @@ export async function builtinDecode(
|
|||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
assertSignal(signal);
|
assertSignal(signal);
|
||||||
|
|
||||||
// Prefer createImageBitmap as it's the off-thread option for Firefox.
|
// Prefer createImageBitmap as it's the off-thread option for Firefox.
|
||||||
const drawable = await abortable(
|
const drawable = await abortable<HTMLImageElement | ImageBitmap>(
|
||||||
signal,
|
signal,
|
||||||
'createImageBitmap' in self ? createImageBitmap(blob) : blobToImg(blob),
|
'createImageBitmap' in self ? createImageBitmap(blob) : blobToImg(blob),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user