fix mongodb/mongodb.d.ts

This commit is contained in:
vvakame
2014-10-07 14:46:14 +09:00
parent 72b094e548
commit 875f270112
+1 -1
View File
@@ -255,7 +255,7 @@ declare module "mongodb" {
// Documentation : http://mongodb.github.io/node-mongodb-native/api-generated/collection.html
export interface Collection {
new (db: Db, collectionName: string, pkFactory?: Object, options?: CollectionCreateOptions);
new (db: Db, collectionName: string, pkFactory?: Object, options?: CollectionCreateOptions): Collection; // is this right?
insert(query: any, callback: (err: Error, result: any) => void): void;
insert(query: any, options: { safe?: any; continueOnError?: boolean; keepGoing?: boolean; serializeFunctions?: boolean; }, callback: (err: Error, result: any) => void): void;