chore: Update to TypeScript 5.2.2

tsconfig has to be different for tests due to cjs/esm issues with jest.
Deploy scripts need to use the original tsconfig though,
which is why we have the current nested tsconfigs.
This commit is contained in:
Joachim Van Herwegen 2023-10-31 09:43:55 +01:00
parent 9cc4a9ce4d
commit edbf895505
5 changed files with 17 additions and 10 deletions

16
package-lock.json generated
View File

@ -107,7 +107,7 @@
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typedoc": "^0.25.2",
"typescript": "^5.0.4"
"typescript": "^5.2.2"
},
"engines": {
"node": ">=18.0"
@ -16507,16 +16507,16 @@
}
},
"node_modules/typescript": {
"version": "5.0.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz",
"integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==",
"version": "5.2.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz",
"integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==",
"dev": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
"node": ">=12.20"
"node": ">=14.17"
}
},
"node_modules/uc.micro": {
@ -30150,9 +30150,9 @@
}
},
"typescript": {
"version": "5.0.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz",
"integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==",
"version": "5.2.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz",
"integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==",
"dev": true
},
"uc.micro": {

View File

@ -168,7 +168,7 @@
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typedoc": "^0.25.2",
"typescript": "^5.0.4"
"typescript": "^5.2.2"
},
"husky": {
"hooks": {

View File

@ -48,7 +48,7 @@ export class BaseLoginAccountStorage<T extends IndexTypeCollection<T>> implement
Promise<void> {
// Determine potential new key pointing to account ID
this.accountKeys[type] = Object.entries(description)
.find(([ , desc ]): boolean => desc === `id:${ACCOUNT_TYPE}`)?.[0];
.find(([ , desc ]): boolean => desc === `id:${ACCOUNT_TYPE}` as `id:${string & keyof T}`)?.[0];
if (type === ACCOUNT_TYPE) {
description = { ...description, ...MINIMUM_ACCOUNT_DESCRIPTION };

View File

@ -0,0 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": [
"."
]
}

View File

@ -1,6 +1,7 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"module": "es2022",
"moduleResolution": "node"
},
"include": [