diff --git a/vision-annotate-images/functions/package.json b/vision-annotate-images/functions/package.json index e31a1f3820..95aa41b4e7 100644 --- a/vision-annotate-images/functions/package.json +++ b/vision-annotate-images/functions/package.json @@ -24,7 +24,7 @@ "@typescript-eslint/parser": "^3.8.0", "eslint": "^7.6.0", "eslint-plugin-import": "^2.22.0", - "typescript": "^3.8.0", + "typescript": "^4.9.0", "firebase-functions-test": "^2.0.0" }, "private": true diff --git a/vision-annotate-images/functions/src/index.ts b/vision-annotate-images/functions/src/index.ts index 5c484d30b5..4618c02faf 100644 --- a/vision-annotate-images/functions/src/index.ts +++ b/vision-annotate-images/functions/src/index.ts @@ -21,7 +21,7 @@ export const annotateImage = functions.https.onCall(async (data, context) => { } try { return await client.annotateImage(JSON.parse(data)); - } catch (e) { + } catch (e: any) { throw new functions.https.HttpsError("internal", e.message, e.details); } });