Reputation: 1145
I have a very simple function:
function open(callback) {
}
On the command line, when I run tsc, I get:
../../../../npm/lib/node_modules/typescript/lib/lib.es6.d.ts(20833,18): error TS2394: Overload signature is not compatible with function implementation.
My tsc version is 2.6.1
Why am I getting the above error message?
Upvotes: 1
Views: 294
Reputation: 276303
Why am I getting the above error message?
Your tsconfig
is stuffed. Make sure you have setup include
with some src folder e.g.
{
"include":[
"src"
]
}
https://basarat.gitbooks.io/typescript/content/docs/project/compilation-context.html
Upvotes: 2