From 3cc0a3ec6b9f323a5ef9148929652b9d4e3f000e Mon Sep 17 00:00:00 2001 From: Arkadiusz Filipczak Date: Fri, 26 Sep 2014 06:43:54 +0200 Subject: [PATCH] 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; } }