Skip to content

Commit

Permalink
fix: mongodb typings for Cursor (#7526)
Browse files Browse the repository at this point in the history
allow having typings for `await for` construction
  • Loading branch information
ruscon committed Apr 3, 2021
1 parent 5be88d4 commit daf3991
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/driver/mongodb/typings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4893,6 +4893,7 @@ export type CursorResult = any | void | boolean;
* @see http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html
*/
export declare class Cursor<T> extends Readable {
[Symbol.asyncIterator](): AsyncIterableIterator<T>;

/**
* Cursor query sort setting.
Expand Down

0 comments on commit daf3991

Please sign in to comment.