-
Notifications
You must be signed in to change notification settings - Fork 12
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
refactor: improve jsdoc types #69
base: elevated_limits_quota_on_params
Are you sure you want to change the base?
Conversation
@@ -1,3 +1,4 @@ | |||
/// <reference path="types.js" /> |
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.
Q: I have not seen this before with jsdocs, what is it doing?
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.
its to reference types defined in another file. like a require
for types.
Not sure if this is the best way though.
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.
Interesting, I had no idea importing them was actually required!
Description
This PR:
The end result is a better user experience (intellisense and documentation for the public interface) and a better developer experience for contributors (type hints for internal functions).
References
N/A
Testing
N/A
Checklist