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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 132 additions and 125 deletions

View file

@ -230,7 +230,7 @@ class CollabWrapper extends PureComponent<Props, CollabState> {
) => {
try {
await saveToFirebase(this.portal, syncableElements);
} catch (error) {
} catch (error: any) {
console.error(error);
}
};
@ -347,7 +347,7 @@ class CollabWrapper extends PureComponent<Props, CollabState> {
scrollToContent: true,
});
}
} catch (error) {
} catch (error: any) {
// log the error and move on. other peers will sync us the scene.
console.error(error);
}

View file

@ -95,7 +95,7 @@ class Portal {
elements: this.collab.excalidrawAPI.getSceneElementsIncludingDeleted(),
files: this.collab.excalidrawAPI.getFiles(),
});
} catch (error) {
} catch (error: any) {
if (error.name !== "AbortError") {
this.collab.excalidrawAPI.updateScene({
appState: {

View file

@ -53,7 +53,7 @@ const RoomDialog = ({
const copyRoomLink = async () => {
try {
await copyTextToSystemClipboard(activeRoomLink);
} catch (error) {
} catch (error: any) {
setErrorMessage(error.message);
}
if (roomLinkInput.current) {
@ -68,7 +68,7 @@ const RoomDialog = ({
text: t("roomDialog.shareTitle"),
url: activeRoomLink,
});
} catch (error) {
} catch (error: any) {
// Just ignore.
}
};