-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript type definitions incorrect for Command class #787
Comments
Same issue for me - commander - 2.15.1, typescript 2.8.1. |
Adding |
I also get an error |
|
We should document that intend end-user to install @types/node. |
Added TypeScript tips in README. Hopefully that helps. |
* tj/commander.js#787 * 最新(13)だと動かない
Kept encountering this error when compiling: node_modules/commander/typings/index.d.ts:26:25 - error TS2689: Cannot extend an interface 'NodeJS.EventEmitter'. Did you mean 'implements'? Had the add node/types specifically for version 12 tj/commander.js#787 DefinitelyTyped/DefinitelyTyped@c47a34e#r36559684
Thank you! This solution works for Electron 9 and Node 12. |
For future readers still using older versions of Commander, I'll add a link to the older README instructions: The TypeScript dependency on |
When compiling a typescript project the following error is produced
The text was updated successfully, but these errors were encountered: