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
+2 -2
View File
@@ -90,7 +90,7 @@ class Library {
this.libraryCache = JSON.parse(JSON.stringify(items));
resolve(items);
} catch (error) {
} catch (error: any) {
console.error(error);
resolve([]);
}
@@ -105,7 +105,7 @@ class Library {
// immediately
this.libraryCache = JSON.parse(serializedItems);
await this.app.props.onLibraryChange?.(items);
} catch (error) {
} catch (error: any) {
this.libraryCache = prevLibraryItems;
throw error;
}