mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-21 07:07:39 +00:00
chore(web): also, strictFunctionTypes - an easy one at lower-levels
This commit is contained in:
parent
09416e50b6
commit
32d72bf2dc
4 changed files with 8 additions and 5 deletions
|
|
@ -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]; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue