- Notifications
You must be signed in to change notification settings - Fork1.9k
Update TS definition to reference proper internal libraries#1089
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
* Replace empty "Stream" interface with the Node internal "stream.Stream" interface* Replace empty "Writable" interface with the Node internal "events.EventEmitter" interface
guyonroche commentedJan 23, 2020
@jakawell thanks for the fix. |
guyonroche commentedJan 27, 2020
@jakawell - I've made a little progress. I've added a new test folder: spec/typescript with a couple of tests that execute ok but now they fail due to typescript compiler errors. |
Summary
Notes
When using the library with TypeScript, I noticed that a couple of empty interfaces were causing errors in the TS parsing. I checked the source code and verified the correct internal interfaces so that the typings are accurate.
I know unit tests are required for PRs, but I don't see anywhere in this project that it has unit tests for the TypeScript definition, and I'm not really sure how to do that (or if it would even be useful). Let me know if I'm wrong!