chore(web): also, strictFunctionTypes - an easy one at lower-levels

This commit is contained in:
Joshua A. Horton 2024-05-13 12:40:19 +07:00
parent 09416e50b6
commit 32d72bf2dc
4 changed files with 8 additions and 5 deletions

View file

@ -57,6 +57,7 @@ export class InputSequenceSimulator<HoveredItemType> {
return {
_arr: arr, // Obviously, this isn't a standard member of TouchList.
length: arr.length,
//@ts-ignore
item: function(i: number) { return this._arr[i]; }
}
}

View file

@ -1,4 +1,4 @@
import { GestureDebugSource } from "@keymanapp/gesture-recognizer";
import { GestureDebugSource, GestureSource } from "@keymanapp/gesture-recognizer";
import { HostFixtureLayoutController } from "./hostFixtureLayoutController.js";
import { RecordedCoordSequenceSet } from "./inputRecording.js";
@ -32,9 +32,9 @@ export class SequenceRecorder {
}
private _attachRecognizerHooks() {
this.controller.recognizer.on('inputstart', (wrappedSequence: WrappedInputSequence) => {
this.controller.recognizer.on('inputstart', (wrappedSequence: GestureSource<any>) => {
const id = wrappedSequence.identifier;
this.records[id] = wrappedSequence;
this.records[id] = wrappedSequence as WrappedInputSequence;
this.startOrder.push(id);
});

View file

@ -3,6 +3,9 @@
"extends": "../tsconfig.base.json",
"compilerOptions": {
"lib": [ "DOM", "ES6"],
// TODO: These override ../tsconfig.base.json settings, and so should be removed if possible,
// but existing code in web/ breaks some of these settings
"noImplicitAny": false,
"strictFunctionTypes": false
}
}

View file

@ -11,9 +11,8 @@
"target": "es5",
// TODO: These override ../tsconfig.base.json settings, and so should be removed if possible,
// but existing code in web/ breaks some of these settinsg
// but existing code in web/ breaks some of these settings
"noImplicitReturns": false,
"strictFunctionTypes": false,
"strictNullChecks": false,
// Other settings - declaration files, sourcemapping, and other miscellaneous bits.