mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Fixed hasNext() on CommandCursor
This commit is contained in:
parent
350ea557e8
commit
c88363cb73
4
types/mongodb/index.d.ts
vendored
4
types/mongodb/index.d.ts
vendored
@ -1848,9 +1848,9 @@ export type CommandCursorResult = object | null;
|
||||
/** http://mongodb.github.io/node-mongodb-native/3.1/api/CommandCursor.html */
|
||||
export class CommandCursor extends Readable {
|
||||
/** http://mongodb.github.io/node-mongodb-native/3.1/api/CommandCursor.html#hasNext */
|
||||
hasNext(): Promise<CommandCursorResult>;
|
||||
hasNext(): Promise<boolean>;
|
||||
/** http://mongodb.github.io/node-mongodb-native/3.1/api/CommandCursor.html#hasNext */
|
||||
hasNext(callback: MongoCallback<CommandCursorResult>): void;
|
||||
hasNext(callback: MongoCallback<boolean>): void;
|
||||
/** http://mongodb.github.io/node-mongodb-native/3.1/api/CommandCursor.html#batchSize */
|
||||
batchSize(value: number): CommandCursor;
|
||||
/** http://mongodb.github.io/node-mongodb-native/3.1/api/CommandCursor.html#clone */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user