chore: Update Typescript to 4.4.4 (#4188)

This commit is contained in:
Lipis
2021-11-02 14:24:16 +02:00
committed by GitHub
parent 60262cb4cc
commit 8d4f455cd3
34 changed files with 132 additions and 125 deletions

View File

@ -28,7 +28,7 @@ const _loadFirebase = async () => {
if (!isFirebaseInitialized) {
try {
firebase.initializeApp(FIREBASE_CONFIG);
} catch (error) {
} catch (error: any) {
// trying initialize again throws. Usually this is harmless, and happens
// mainly in dev (HMR)
if (error.code === "app/duplicate-app") {
@ -172,7 +172,7 @@ export const saveFilesToFirebase = async ({
},
);
savedFiles.set(id, true);
} catch (error) {
} catch (error: any) {
erroredFiles.set(id, true);
}
}),
@ -296,7 +296,7 @@ export const loadFilesFromFirebase = async (
} else {
erroredFiles.set(id, true);
}
} catch (error) {
} catch (error: any) {
erroredFiles.set(id, true);
console.error(error);
}