build(deps): upgrade to typescript 6

TypeScript 6 enables `strict` by default and changes default @types
inclusion.
This commit is contained in:
Damien Retzinger
2026-06-09 18:03:30 -04:00
parent 9d3601a1e3
commit 6db07e2737
6 changed files with 12 additions and 9 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -2,7 +2,7 @@ import { customVersionsValidator } from "./validations/custom-versions-validator
import { isKnownKind } from "./validations/is-known-kind";
import { KindValidator } from "./validator";
export const validateKind: KindValidator = (kind, custom_versions = null): boolean => {
export const validateKind: KindValidator = (kind, custom_versions): boolean => {
return validators.reduce((acc, el) => el(kind, custom_versions), true);
}
@@ -12,13 +12,13 @@ export const getMatrixForKind = (kind: string, project: string, versions = "", r
switch(kind){
case 'latest':
return getMatrixForVersions(project, latestJson[project]);
return getMatrixForVersions(project, latestJson[project as keyof typeof latestJson]);
case 'currently-supported':
return getMatrixForVersions(project, getCurrentlySupportedVersions(project, new Date()));
case 'usable':
return getMatrixForVersions(project, getUsableVersions(project));
case 'nightly':
return amendMatrixForNext(getMatrixForVersions(project, nightlyJson[project]), 'https://upstream-nightly.mage-os.org', getDayBefore());
return amendMatrixForNext(getMatrixForVersions(project, nightlyJson[project as keyof typeof nightlyJson]), 'https://upstream-nightly.mage-os.org', getDayBefore());
case 'all':
return getMatrixForVersions(project, Object.keys(getIndividualVersionsForProject(project)));
case 'custom':
+3
View File
@@ -2,5 +2,8 @@
"compilerOptions": {
"resolveJsonModule": true,
"esModuleInterop": true,
"typeRoots": ["../node_modules/@types"],
"types": ["jest"],
"target": "ES2022"
}
}