Make TS happy

This commit is contained in:
Surma
2021-05-24 16:29:12 +01:00
parent 58661078e2
commit 128096afd9

View File

@@ -252,7 +252,7 @@ export async function builtinDecode(
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),
); );