mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
changed command and aggregation cursors to class too
This commit is contained in:
parent
6c4157684a
commit
f69f754e8d
4
mongodb/index.d.ts
vendored
4
mongodb/index.d.ts
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user