-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Use Typescript to lint JSDoc annotations #986
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
Conversation
lib/NetworkManager.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this necessary now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I think it will help more than hurt.
npm-debug.log
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we want to check in npm-debug.log?
a7271d3 to
ce59439
Compare
|
Awwwwsome. Could you please minimize the diff (there are a lot of unnecessary changes like "!" added/removed). And it's good to go. Also, npm-debug is not needed. |
|
|
||
| /** | ||
| * @param {K} key | ||
| * @param {V} value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JoelEinbinder just curious... TSC didn't need these annotations? And how did you know they were unnecessary ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s a bug in typescript. microsoft/TypeScript#18135
|
As soon as annotations are "compatible" with typescript it should be easy to generate TS definitions from JSDoc with something like this: |
A re-upload of #219 from my new repository.
#65