changed command and aggregation cursors to class too

This commit is contained in:
Umed Khudoiberdiev 2017-02-12 10:25:46 +05:00 committed by GitHub
parent 6c4157684a
commit f69f754e8d

4
mongodb/index.d.ts vendored
View File

@ -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<T> extends Readable {
export class AggregationCursor<T> extends Readable {
// http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#batchSize
batchSize(value: number): AggregationCursor<T>;
// http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#clone
@ -1275,7 +1275,7 @@ export interface AggregationCursor<T> 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