Skip to content

Commit

Permalink
Merge pull request #331 from zkldi/definitely-typed-fix
Browse files Browse the repository at this point in the history
Removes deprecation warning from collection.count, as it uses an undeprecated function internally.
  • Loading branch information
mathieudutour committed Feb 5, 2021
2 parents 6492a5d + 71cca57 commit 027ab43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ declare module "monk" {
): void;

/**
* http://mongodb.github.io/node-mongodb-native/3.1/api/Collection.html#count
* @deprecated Use countDocuments or estimatedDocumentCount
* http://mongodb.github.io/node-mongodb-native/3.1/api/Collection.html#countDocuments
*/
count(
query?: FilterQuery<T>,
Expand Down

0 comments on commit 027ab43

Please sign in to comment.