From f69f754e8d5cb23428b6adcedc8006d6995c7bfb Mon Sep 17 00:00:00 2001 From: Umed Khudoiberdiev Date: Sun, 12 Feb 2017 10:25:46 +0500 Subject: [PATCH] changed command and aggregation cursors to class too --- mongodb/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mongodb/index.d.ts b/mongodb/index.d.ts index 27baabc09c..c37bac86cd 100644 --- a/mongodb/index.d.ts +++ b/mongodb/index.d.ts @@ -1223,7 +1223,7 @@ export interface EndCallback { //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#~resultCallback export type AggregationCursorResult = any | void; //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html -export interface AggregationCursor extends Readable { +export class AggregationCursor extends Readable { // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#batchSize batchSize(value: number): AggregationCursor; // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#clone @@ -1275,7 +1275,7 @@ export interface AggregationCursor extends Readable { } //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html -export interface CommandCursor extends Readable { +export class CommandCursor extends Readable { // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#batchSize batchSize(value: number): CommandCursor; // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#clone