From 6488c4fa0e217bfe210fd5d5cad88f462debcb92 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Sat, 17 Aug 2024 21:10:11 +0530 Subject: [PATCH] Sigh --- web/packages/new/photos/services/ml/ml-data.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/packages/new/photos/services/ml/ml-data.ts b/web/packages/new/photos/services/ml/ml-data.ts index d9ec5a8425..fb31bc9dcc 100644 --- a/web/packages/new/photos/services/ml/ml-data.ts +++ b/web/packages/new/photos/services/ml/ml-data.ts @@ -172,6 +172,11 @@ export const fetchMLData = async ( } try { + // TODO: This line is included in the photos app which currently + // doesn't have strict mode enabled, and where it causes a spurious + // error, so we unfortunately need to turn off typechecking. + // eslint-disable-next-line @typescript-eslint/ban-ts-comment, @typescript-eslint/prefer-ts-expect-error + // @ts-ignore const decryptedBytes = await decryptBlob(remoteFileData, file.key); const jsonString = await gunzip(decryptedBytes); result.set(fileID, remoteMLDataFromJSONString(jsonString));