From fc759dcbef3e5c58a81a4c9da3bc74f5c187d6cf Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Thu, 20 Sep 2018 21:55:27 -0600 Subject: [PATCH] feat: added AggregationCursor.hasNext --- types/mongodb/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/mongodb/index.d.ts b/types/mongodb/index.d.ts index cad52bb88a..f7156dad62 100644 --- a/types/mongodb/index.d.ts +++ b/types/mongodb/index.d.ts @@ -1483,6 +1483,9 @@ export class AggregationCursor extends Readable { geoNear(document: Object): AggregationCursor; /** http://mongodb.github.io/node-mongodb-native/3.1/api/AggregationCursor.html#group */ group(document: Object): AggregationCursor; + /** http://mongodb.github.io/node-mongodb-native/3.1/api/AggregationCursor.html#hasNext */ + hasNext(): Promise; + hasNext(callback: MongoCallback): void; /** http://mongodb.github.io/node-mongodb-native/3.1/api/AggregationCursor.html#isClosed */ isClosed(): boolean; /** http://mongodb.github.io/node-mongodb-native/3.1/api/AggregationCursor.html#limit */