A local-first personal finance app
fix build error with typescript v6 (#7524)
Matt Fiddamana4e401bc8b54
diff --git a/packages/desktop-client/src/components/accounts/Account.tsx b/packages/desktop-client/src/components/accounts/Account.tsxindex fdf19f488d..39615c68d8 100644--- a/packages/desktop-client/src/components/accounts/Account.tsx+++ b/packages/desktop-client/src/components/accounts/Account.tsx@@ -1677,6 +1677,7 @@ class AccountInternal extends PureComponent<this.setState(state => ({sort: {...state.sort,+ field: headerClicked,ascDesc,},}));diff --git a/packages/sync-server/src/app.ts b/packages/sync-server/src/app.tsindex 2d114dbcdf..020c828168 100644--- a/packages/sync-server/src/app.ts+++ b/packages/sync-server/src/app.ts@@ -186,9 +186,9 @@ export async function run() {) {console.log('OpenID configuration found. Preparing server to use it');try {- const { error } = await bootstrap({ openId: openIdConfig }, true);- if (error) {- console.log(error);+ const result = await bootstrap({ openId: openIdConfig }, true);+ if ('error' in result && result.error) {+ console.log(result.error);} else {console.log('OpenID configured!');}diff --git a/tsconfig.json b/tsconfig.jsonindex 6cf84586ed..8247678c09 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -17,7 +17,6 @@"esModuleInterop": true,"experimentalDecorators": true,"resolveJsonModule": true,- "downlevelIteration": true,// TODO: enable once every file is ts// "strict": true,"strictFunctionTypes": true,diff --git a/upcoming-release-notes/7524.md b/upcoming-release-notes/7524.mdnew file mode 100644index 0000000000..ccb97303b4--- /dev/null+++ b/upcoming-release-notes/7524.md@@ -0,0 +1,6 @@+---+category: Bugfixes+authors: [matt-fidd]+---++Fix build error with typescript v6