mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-25 12:00:38 +08:00
Direction argument of cursor.sort is optional
This commit is contained in:
1 parent
a546e99a72
commit
8f03a21035
1 file changed
+1
-1
Vendored
+1
-1
@@ -1124,7 +1124,7 @@ declare module "mongodb" {
|
||||
// http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#snapshot
|
||||
snapshot(snapshot: Object): Cursor;
|
||||
// http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#sort
|
||||
sort(keyOrList: string | Object[] | Object | Object, direction: number): Cursor;
|
||||
sort(keyOrList: string | Object[] | Object | Object, direction?: number): Cursor;
|
||||
// http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#stream
|
||||
stream(options?: { transform?: Function }): Cursor;
|
||||
// http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#toArray
|
||||
|
||||
Reference in new issue
Block a user