Skip to content

Commit

Permalink
fix: mongodb Cursor.forEach types (#4759)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruscon authored and pleerock committed Oct 18, 2019
1 parent 0a13e6a commit fccbe3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/driver/mongodb/typings.ts
Expand Up @@ -5011,9 +5011,10 @@ export declare class Cursor<T> extends Readable {
* Iterates over all the documents for this cursor using the iterator, callback pattern.
* @param iterator The iteration callback.
* @param callback The end callback.
* @see http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#forEach
* @see http://mongodb.github.io/node-mongodb-native/3.1/api/Cursor.html#forEach
*/
forEach(iterator: IteratorCallback<T>, callback: EndCallback): void;
forEach(iterator: IteratorCallback<T>): Promise<void>;

/**
* Check if there is any document still available in the cursor.
Expand Down

0 comments on commit fccbe3e

Please sign in to comment.