From bb185bb119818eaf2d11a60f010dd5f526c9cbe1 Mon Sep 17 00:00:00 2001 From: pyoungon Date: Wed, 30 Dec 2015 12:55:45 +0900 Subject: [PATCH] Run 'npm test' and fix file to pass tests. (Change the definition order) --- mongodb/mongodb.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mongodb/mongodb.d.ts b/mongodb/mongodb.d.ts index 9d5488e32..2458dbdf2 100644 --- a/mongodb/mongodb.d.ts +++ b/mongodb/mongodb.d.ts @@ -13,8 +13,8 @@ declare module "mongodb" { export class MongoClient{ constructor(serverConfig: any, options: any); - static connect(uri: string, options: any, callback?: (err: Error, db: Db) => void): void; static connect(uri: string, callback?: (err: Error, db: Db) => void): void; + static connect(uri: string, options: any, callback?: (err: Error, db: Db) => void): void; } // Class documentation : http://mongodb.github.io/node-mongodb-native/api-generated/server.html @@ -44,8 +44,8 @@ declare module "mongodb" { public eval(code: any, parameters: any[], options?: any, callback?: (err: Error, result: any) => void ): void; //public dereference(dbRef: DbRef, callback?: (err: Error, result: any) => void): void; - public logout(options: any, callback?: (err: Error, result: any) => void ): void; public logout(callback?: (err: Error, result: any) => void ): void; + public logout(options: any, callback?: (err: Error, result: any) => void ): void; public authenticate(userName: string, password: string, callback?: (err: Error, result: any) => void ): void; public authenticate(userName: string, password: string, options: any, callback?: (err: Error, result: any) => void ): void; @@ -425,8 +425,8 @@ declare module "mongodb" { indexes(callback?: Function): void; aggregate(pipeline: any[], callback?: (err: Error, results: any) => void): void; aggregate(pipeline: any[], options: {readPreference: string}, callback?: (err: Error, results: any) => void): void; - stats(options: {readPreference: string; scale: number}, callback?: (err: Error, results: CollStats) => void): void; stats(callback?: (err: Error, results: CollStats) => void): void; + stats(options: {readPreference: string; scale: number}, callback?: (err: Error, results: CollStats) => void): void; hint: any; }