Машинопись noImplicitAny: ложь не работает
Я использую node-ts v8
скомпилировать и запустить mocha
тесты.
команда от package.json
чтобы начать тесты:
"test-matches-collecting-job": "mocha -r ts-node/register --project tsconfig.mocha.json jobs/collectMatchesTest.ts"
tsconfig.mocha.json
:
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"lib": ["es5", "es6", "es2017", "dom"],
"moduleResolution": "node",
"inlineSourceMap": true,
"inlineSources": true,
"allowJs": true,
"noImplicitAny": false,
"allowSyntheticDefaultImports": true
}
}
но все равно получаю ошибки:
➜ Zeus git:(uo-picks) ✗ yarn test-matches-collecting-job
yarn run v1.12.3
$ mocha -r ts-node/register --project ./tssconfig.mocha.json jobs/collectMatchesTest.ts
/home/gefalko/gepick/Zeus/node_modules/ts-node/src/index.ts:228
return new TSError(diagnosticText, diagnosticCodes)
^
TSError: ⨯ Unable to compile TypeScript:
app/services/db/beMatchInserter.ts(78,21): error TS7017: Element implicitly has an 'any' type because type '{ half1: IResult; half2: IResult; matchRes: IResult; }' has no index signature.
app/services/db/beMatchInserter.ts(87,21): error TS7017: Element implicitly has an 'any' type because type '{ half1: IResult; half2: IResult; matchRes: IResult; }' has no index signature.
app/services/db/beMatchInserter.ts(91,21): error TS7017: Element implicitly has an 'any' type because type '{ half1: IResult; half2: IResult; matchRes: IResult; }' has no index signature.
app/services/db/beMatchInserter.ts(94,17): error TS7017: Element implicitly has an 'any' type because type '{ half1: IResult; half2: IResult; matchRes: IResult; }' has no index signature.
app/services/db/beMatchInserter.ts(95,20): error TS7017: Element implicitly has an 'any' type because type '{ half1: IResult; half2: IResult; matchRes: IResult; }' has no index signature.
app/services/db/beMatchInserter.ts(95,47):
...