Skip to content

Commit

Permalink
fix type for countDocuments
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelm-sup committed Nov 26, 2023
1 parent 16025da commit ee6c314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ export class Collection<TSchema extends Document = Document> {
* @see https://www.mongodb.com/docs/manual/reference/operator/query/centerSphere/#op._S_centerSphere
*/
async countDocuments(
filter: Document = {},
filter: Filter<TSchema> = {},
options: CountDocumentsOptions = {}
): Promise<number> {
return executeOperation(
Expand Down

0 comments on commit ee6c314

Please sign in to comment.