Bump typescript to 6

And adapt to it.
This commit is contained in:
Marius Vollmer 2026-06-02 15:45:06 +03:00
parent 44c5f759dc
commit 9a57570194
4 changed files with 9 additions and 6 deletions

@ -1 +1 @@
Subproject commit 92262f14c090fabe94f5f6dd9b85ce78fa85d600
Subproject commit 9b8b83e48284409190f32d65fc90c8833f1d874a

View file

@ -31,7 +31,7 @@
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/throttle-debounce": "5.0.2",
"@typescript-eslint/eslint-plugin": "8.46.0",
"@typescript-eslint/eslint-plugin": "8.60.0",
"esbuild-wasm": "0.28.0",
"eslint": "8.57.1",
"eslint-config-standard": "17.1.0",
@ -51,7 +51,7 @@
"stylelint-config-standard-scss": "17.0.0",
"stylelint-formatter-pretty": "4.0.1",
"stylelint-use-logical": "2.1.3",
"typescript": "5.9.3"
"typescript": "6.0.3"
},
"scripts": {
"eslint": "eslint --ext .js --ext .jsx --ext .ts --ext .tsx pkg/ test/common/",

View file

@ -73,7 +73,7 @@ function MockPeer() {
};
this.control = function(options) {
console.assert(typeof command === 'string');
console.assert(typeof options.command === 'string');
console.assert(options !== null && typeof options === 'object');
console.assert(arguments.length == 1);
window.setTimeout(function() { peer.dispatchEvent("control", channel, options) }, 5);

View file

@ -11,16 +11,19 @@
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"baseUrl": "./pkg/lib",
"esModuleInterop": true,
"exactOptionalPropertyTypes": true,
"noUncheckedSideEffectImports": false,
"incremental": true,
"jsx": "react",
"lib": [
"dom",
"es2021"
],
"moduleResolution": "node",
"types": ["*"],
"paths": {
"*": ["./pkg/lib/*"]
},
"noEmit": true, // we only use `tsc` for type checking
"strict": true,
"target": "es2021",