From 8f03a2103568213688251ab95b023054bcc9e1aa Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Wed, 13 Jan 2016 11:29:14 +0100 Subject: [PATCH] Direction argument of cursor.sort is optional --- mongodb/mongodb.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongodb/mongodb.d.ts b/mongodb/mongodb.d.ts index 595c21b06..b96c43522 100644 --- a/mongodb/mongodb.d.ts +++ b/mongodb/mongodb.d.ts @@ -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