Skip to content

Commit 0ec6dd9

Browse files
committed
chore(ts): moving to TS 5.6
1 parent 866dbe1 commit 0ec6dd9

File tree

5 files changed

+92
-65
lines changed

5 files changed

+92
-65
lines changed

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ export default [...[].concat(
127127
}],
128128
"@stylistic/quotes": ["error", "double"],
129129

130+
"@typescript-eslint/no-unsafe-type-assertion": "off",
130131
"@typescript-eslint/consistent-type-exports": "off",
131132
"@typescript-eslint/prefer-readonly-parameter-types": "off",
132133
"@typescript-eslint/class-methods-use-this": "off",
@@ -350,6 +351,7 @@ export default [...[].concat(
350351
SwitchCase: 1,
351352
}],
352353

354+
"@typescript-eslint/no-unsafe-type-assertion": "off",
353355
"@typescript-eslint/only-throw-error": "off",
354356
"@typescript-eslint/prefer-destructuring": "off",
355357
"@typescript-eslint/unbound-method": "off",

package-lock.json

Lines changed: 83 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@
6969
"rollup-plugin-esbuild": "6.1.1",
7070
"ts-jest": "29.2.5",
7171
"typedoc": "0.26.7",
72-
"typescript": "5.5.4",
73-
"typescript-eslint": "8.9.0"
72+
"typescript": "5.6.3",
73+
"typescript-eslint": "8.15.0"
7474
},
7575
"scripts": {
7676
"package": "npm run pre-build && npm run build && npm run doc",

src/impl/interaction/library/MultiTouch.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export class MultiTouch extends ConcurrentInteraction<MultiTouchData, MultiTouch
106106
* @category Interaction Library
107107
*/
108108
public constructor(nbTouches: number, strict: boolean, logger: Logger, name?: string) {
109+
const multiData = new MultiTouchDataImpl();
109110
const theFSM = new MultiTouchFSM(nbTouches, strict, logger, {
110111
"onTouch": (event: TouchEvent): void => {
111112
const all = Array.from(event.touches);
@@ -140,7 +141,7 @@ export class MultiTouch extends ConcurrentInteraction<MultiTouchData, MultiTouch
140141
.filter(data => !currentIDs.has(data.src.identifier))
141142
// eslint-disable-next-line unicorn/no-array-for-each
142143
.forEach(data => {
143-
(this.data as MultiTouchDataImpl).removeTouchData(data.src.identifier);
144+
multiData.removeTouchData(data.src.identifier);
144145
});
145146
}
146147
};
@@ -150,6 +151,6 @@ export class MultiTouch extends ConcurrentInteraction<MultiTouchData, MultiTouch
150151
concc.addHandler(reinitHandler);
151152
}
152153

153-
super(theFSM, new MultiTouchDataImpl(), logger, name ?? MultiTouch.name, false);
154+
super(theFSM, multiData, logger, name ?? MultiTouch.name, false);
154155
}
155156
}

tsconfig.base.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"noFallthroughCasesInSwitch": true,
2323
"noPropertyAccessFromIndexSignature": true,
2424
"exactOptionalPropertyTypes": true,
25-
"strict": true
25+
"strict": true,
26+
"noUncheckedSideEffectImports": true
2627
}
2728
}

0 commit comments

Comments
 (0)