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

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 };