From 9f319d3c5b2e348283554aeb0832d56500544f4e Mon Sep 17 00:00:00 2001 From: Arkadiusz Filipczak Date: Fri, 26 Sep 2014 06:43:14 +0200 Subject: [PATCH 1/2] DbCreateOptions' w property should accept numbers --- 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 05f71d20a..ce79324ec 100644 --- a/mongodb/mongodb.d.ts +++ b/mongodb/mongodb.d.ts @@ -178,7 +178,7 @@ declare module "mongodb" { // Current definition by documentation version 1.3.13 (28.08.2013) export interface DbCreateOptions { // the write concern for the operation where < 1 is no acknowlegement of write and w >= 1, w = ‘majority’ or tag acknowledges the write. - w?: string; + w?: any; // set the timeout for waiting for write concern to finish (combines with w option). wtimeout?: number; From 3cc0a3ec6b9f323a5ef9148929652b9d4e3f000e Mon Sep 17 00:00:00 2001 From: Arkadiusz Filipczak Date: Fri, 26 Sep 2014 06:43:54 +0200 Subject: [PATCH 2/2] fixed typo readPreference(s) --- mongodb/mongodb.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mongodb/mongodb.d.ts b/mongodb/mongodb.d.ts index ce79324ec..83724c318 100644 --- a/mongodb/mongodb.d.ts +++ b/mongodb/mongodb.d.ts @@ -272,11 +272,11 @@ declare module "mongodb" { update(selector: Object, document: any, options: { safe?: boolean; upsert?: any; multi?: boolean; serializeFunctions?: boolean; }, callback: (err: Error, result: any) => void): void; distinct(key: string, query: Object, callback: (err: Error, result: any) => void): void; - distinct(key: string, query: Object, options: { readPreferences: string; }, callback: (err: Error, result: any) => void): void; + distinct(key: string, query: Object, options: { readPreference: string; }, callback: (err: Error, result: any) => void): void; count(callback: (err: Error, result: any) => void): void; count(query: Object, callback: (err: Error, result: any) => void): void; - count(query: Object, options: { readPreferences: string; }, callback: (err: Error, result: any) => void): void; + count(query: Object, options: { readPreference: string; }, callback: (err: Error, result: any) => void): void; drop(callback?: (err: Error, result: any) => void): void; @@ -429,7 +429,7 @@ declare module "mongodb" { showDiskLoc?: boolean; comment?: String; raw?: boolean; - readPreferences?: String; + readPreference?: String; partial?: boolean; } @@ -438,6 +438,6 @@ declare module "mongodb" { serializeFunctions?: any; raw?: boolean; pkFactory?: any; - readPreferences?: string; + readPreference?: string; } }