Typescript code with option noImplicitAny:true #3197
-
I compile my Typescript tests with the compiler option noImplicitAny:true. Using tsc 4.9.5 (or 5.0.4) I get the following error: Actually I would sometimes like to type the parameter t as follows:
I haven't found out to import AVAs ExecutionContext (import {ExecutionContext} from "ava" does work work). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Would be good to see the code pattern that triggers that.
https://github.com/avajs/ava/blob/main/docs/recipes/typescript.md#typing-tcontext |
Beta Was this translation helpful? Give feedback.
Would be good to see the code pattern that triggers that.
t
is typed asExecutionContext<Context = unknown>
which isn'tany
.https://github.com/avajs/ava/blob/main/docs/recipes/typescript.md#typing-tcontext