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
Mark optional property with square brackets #7975
Conversation
Will this also require work on the tools that create the typedefs for the Compiler? |
I think it's only for the api doc because the type are already optional (with the |
The babel-plugin-jsdoc-closure supports this already and creates a proper type for the Compiler. |
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.
Looks good, thanks.
* (defaults to `1000`). | ||
* @property {undefined|function(number):number} easing The easing function used | ||
* @property {number|undefined} [duration=1000] The duration of the animation in milliseconds. | ||
* @property {undefined|function(number):number} [easing] The easing function used |
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.
Oh sorry for the inaccurate review. You should have removed the undefined
in all places where you set the type in square parentheses. The babel-plugin-closure-jsdoc will resolve that to the correct type.
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 will do a follow-up pr
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.
see #7979
@fredj Can you please create a follow-up pull request to address #7975 (comment)? Thanks. |
No description provided.