Skip to content

Commit

Permalink
chore(web): gesture-recognizer unit-test noImplicitAny touchup
Browse files Browse the repository at this point in the history
  • Loading branch information
jahorton committed May 29, 2024
1 parent d5b5eeb commit f34fd85
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as PromiseStatusModule from 'promise-status-async';
const PromiseStatuses = PromiseStatusModule.PromiseStatuses;
import { assertingPromiseStatus as promiseStatus } from '../../../resources/assertingPromiseStatus.js';

import { InputSample, GestureSource, gestures } from '@keymanapp/gesture-recognizer';
import { InputSample, GestureSource, gestures, CumulativePathStats } from '@keymanapp/gesture-recognizer';
import { timedPromise } from '@keymanapp/web-utils';

import {
Expand Down Expand Up @@ -141,7 +141,15 @@ describe("PathMatcher", function() {
});

describe("Second stage", async function() {
let commonBase;
let commonBase: {
samples: {
targetX: number;
targetY: number;
t: number;
item: string;
}[];
stats: CumulativePathStats<string>;
};

before(async function() {
const emulatedContactPoint = new GestureSource<string>(1, null, true);
Expand Down
2 changes: 0 additions & 2 deletions common/web/gesture-recognizer/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
// but existing code in web/ breaks some of these settings
//
// At present, the code actually compiles without them... but the TS tests are a different matter.
"noImplicitAny": false,
"strictFunctionTypes": false,
"noImplicitReturns": false
},
"include": ["./src/engine/**/*.ts"],
Expand Down

0 comments on commit f34fd85

Please sign in to comment.