mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-13 17:27:09 +00:00
Jake’s thoroughness is doing my head in :P
This commit is contained in:
@@ -26,7 +26,7 @@ export const decodersPromise: Promise<Decoder[]> = Promise.all(
|
||||
// values here.
|
||||
).then(list => list.filter(item => !!item)) as any as Promise<Decoder[]>;
|
||||
|
||||
export async function findDecodersByMimeType(mimeType: string): Promise<Decoder[]> {
|
||||
async function findDecodersByMimeType(mimeType: string): Promise<Decoder[]> {
|
||||
const decoders = await decodersPromise;
|
||||
return decoders.filter(decoder => decoder.canHandleMimeType(mimeType));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user