Skip to content

fix(jsdoc): mark db.collection callback as optional + typo fix #1658

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

Merged
merged 2 commits into from
Jan 31, 2018

Conversation

nikitaeverywhere
Copy link
Contributor

@nikitaeverywhere nikitaeverywhere commented Jan 31, 2018

Hello!

As stated in JSDoc to Db.prototype.collection function,

If the application does not use strict mode you can use it without a
callback in the following way: `var collection = db.collection('mycollection');`

This pull request fixes JSDoc, which removes this IDE warning:

2018-01-31_124438

Additionally, it fixes a typo in the function description (duplicated word can).

Thank you for a great project and keep up the good work! 😃

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