Skip to content

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

Merged
mbroadst merged 2 commits into
mongodb:3.0.0from
nikitaeverywhere:3.0.0
Jan 31, 2018
Merged

fix(jsdoc): mark db.collection callback as optional + typo fix#1658
mbroadst merged 2 commits into
mongodb:3.0.0from
nikitaeverywhere:3.0.0

Conversation

@nikitaeverywhere

@nikitaeverywhere nikitaeverywhere commented Jan 31, 2018

Copy link
Copy Markdown
Contributor

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.

4 participants