chore: Update Typescript to 4.4.4 (#4188)
This commit is contained in:
@ -56,7 +56,7 @@ export const actionCopyAsSvg = register({
|
||||
return {
|
||||
commitToHistory: false,
|
||||
};
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
console.error(error);
|
||||
return {
|
||||
appState: {
|
||||
@ -106,7 +106,7 @@ export const actionCopyAsPng = register({
|
||||
},
|
||||
commitToHistory: false,
|
||||
};
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
console.error(error);
|
||||
return {
|
||||
appState: {
|
||||
|
@ -151,7 +151,7 @@ export const actionSaveToActiveFile = register({
|
||||
: null,
|
||||
},
|
||||
};
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
if (error?.name !== "AbortError") {
|
||||
console.error(error);
|
||||
}
|
||||
@ -181,7 +181,7 @@ export const actionSaveFileToDisk = register({
|
||||
app.files,
|
||||
);
|
||||
return { commitToHistory: false, appState: { ...appState, fileHandle } };
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
if (error?.name !== "AbortError") {
|
||||
console.error(error);
|
||||
}
|
||||
@ -219,7 +219,7 @@ export const actionLoadScene = register({
|
||||
files,
|
||||
commitToHistory: true,
|
||||
};
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
if (error?.name === "AbortError") {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user