Update Collection constructor

This commit is contained in:
nikeee13
2013-08-28 23:30:26 +02:00
parent 1aef8d9bb3
commit 79808dd87f
+1 -1
View File
@@ -215,7 +215,7 @@ declare module "mongodb" {
}
export interface Collection {
//constructor (db: Db, collectionName: string, pkFactory, options);
constructor (db: Db, collectionName: string, pkFactory?: Object, options?: CollectionCreateOptions);
insert(query: any, callback: (err: any, result: any) => void): void;
insert(query: any, options: { safe?: any; continueOnError?: boolean; keepGoing?: boolean; serializeFunctions?: boolean; }, callback: (err: any, result: any) => void): void;