mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Run 'npm test' and fix file to pass tests. (Change the definition order)
This commit is contained in:
Vendored
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user