From 79808dd87f15b60d0f6300648b2983641000fb2d Mon Sep 17 00:00:00 2001 From: nikeee13 Date: Wed, 28 Aug 2013 23:30:26 +0200 Subject: [PATCH] Update Collection constructor --- mongodb/mongodb.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongodb/mongodb.d.ts b/mongodb/mongodb.d.ts index 303ec58994..200c5cede4 100644 --- a/mongodb/mongodb.d.ts +++ b/mongodb/mongodb.d.ts @@ -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;