fix build error with typescript v6 (#7524)

* fix tsconfig error

* note

* fix strict mode violation

* fix another type issue
This commit is contained in:
Matt Fiddaman
2026-04-17 21:52:44 +01:00
committed by GitHub
parent ff7f81ac06
commit a4e401bc8b
4 changed files with 10 additions and 4 deletions

View File

@@ -1677,6 +1677,7 @@ class AccountInternal extends PureComponent<
this.setState(state => ({
sort: {
...state.sort,
field: headerClicked,
ascDesc,
},
}));

View File

@@ -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!');
}

View File

@@ -17,7 +17,6 @@
"esModuleInterop": true,
"experimentalDecorators": true,
"resolveJsonModule": true,
"downlevelIteration": true,
// TODO: enable once every file is ts
// "strict": true,
"strictFunctionTypes": true,

View File

@@ -0,0 +1,6 @@
---
category: Bugfixes
authors: [matt-fidd]
---
Fix build error with typescript v6