Skip to content
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

jsdoc comments #836

Merged
merged 2 commits into from
Jun 17, 2015
Merged

jsdoc comments #836

merged 2 commits into from
Jun 17, 2015

Conversation

DonutEspresso
Copy link
Member

No description provided.

@micahr
Copy link
Member

micahr commented Jun 17, 2015

Such docs. Very commented. Well done.

👍

* @param {Object} options contains the parameters:
* @public
* @class
* @param {Object} opts contains the parameters:
* - {Object} stream The stream to which to write when dumping captured
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the blessed way to doc a complex object? I had thought it was something like

/**
 * @param {Object} opts
 * @param {Object} opts.someotherobject
 * @param {String} opts.someString
 */

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per the JSDoc docs:

If a parameter is expected to have a specific property, you can document that property by providing an additional @param tag.

So it should probably be documented as @yunong proposed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, that was an existing comment block, so I didn't look too closely. I'll fix it up as proposed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants