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 */