mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-10 11:50:49 +08:00
Update Collection constructor
This commit is contained in:
1 parent
1aef8d9bb3
commit
79808dd87f
1 file changed
+1
-1
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user