mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-03-01 04:02:55 +00:00
Merge pull request #21490 from mcortesi/master
[mongodb] Include `bufferMaxEntries` as a MongoClientOption
This commit is contained in:
commit
70688d643c
4
types/mongodb/index.d.ts
vendored
4
types/mongodb/index.d.ts
vendored
@ -5,6 +5,7 @@
|
||||
// Gady Piazza <https://github.com/kikar>
|
||||
// Jason Dreyzehner <https://github.com/bitjson>
|
||||
// Gaurav Lahoti <https://github.com/dante-101>
|
||||
// Mariano Cortesi <https://github.com/dante-101>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@ -146,6 +147,9 @@ export interface DbCreateOptions {
|
||||
promiseLibrary?: Object;
|
||||
// https://docs.mongodb.com/manual/reference/read-concern/#read-concern
|
||||
readConcern?: { level?: Object };
|
||||
// Sets a cap on how many operations the driver will buffer up before giving up on getting a
|
||||
// working connection, default is -1 which is unlimited.
|
||||
bufferMaxEntries?: number;
|
||||
}
|
||||
|
||||
// http://mongodb.github.io/node-mongodb-native/2.2/api/Server.html
|
||||
|
||||
@ -3,7 +3,7 @@ import mongodb = require('mongodb');
|
||||
var MongoClient = mongodb.MongoClient;
|
||||
|
||||
var format = require('util').format;
|
||||
let options = {
|
||||
let options: mongodb.MongoClientOptions = {
|
||||
authSource : ' ',
|
||||
w : 1,
|
||||
wtimeout : 300,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user