You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<script>/** * The method comment. * @param {string} param1 - the first parameter * @param {boolean} [param2=false] - the second parameter * @returns {number} - return value description */exportfunctionpublicMethod(param1,param2){return0;};</script>
But having this auto-documentation will be even more awesome:
<script>/** * The method comment. * @param param2 - description of the second param * @returns {number} - return value description */exportfunctionpublicMethod(param1="a",param2=1){return0;};</script>
Here we can infer the parameter type as well as the default value because of the ES6 assignment pattern.
And all we have to do is supply a description in the comments
The text was updated successfully, but these errors were encountered:
This works awesome:
But having this auto-documentation will be even more awesome:
Here we can infer the parameter type as well as the default value because of the ES6 assignment pattern.
And all we have to do is supply a description in the comments
The text was updated successfully, but these errors were encountered: