mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
🔧 set property optional
This commit is contained in:
Vendored
+1
-1
@@ -105,7 +105,7 @@ export interface MongoClientOptions extends
|
||||
password: string;
|
||||
},
|
||||
// Determines whether or not to use the new url parser
|
||||
useNewUrlParser: boolean
|
||||
useNewUrlParser?: boolean
|
||||
}
|
||||
|
||||
export interface SSLOptions {
|
||||
|
||||
@@ -27,7 +27,8 @@ let options: mongodb.MongoClientOptions = {
|
||||
sslCert: new Buffer(999),
|
||||
sslKey: new Buffer(999),
|
||||
sslPass: new Buffer(999),
|
||||
promoteBuffers: false
|
||||
promoteBuffers: false,
|
||||
useNewUrlParser: false
|
||||
}
|
||||
MongoClient.connect('mongodb://127.0.0.1:27017/test', options, function (err: mongodb.MongoError, client: mongodb.MongoClient) {
|
||||
if (err) throw err;
|
||||
|
||||
Reference in New Issue
Block a user