mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 19:43:20 +08:00
Add useNewUrlParser parameter to mongoose (because of deprecation warning) (#27067)
This commit is contained in:
committed by
Mohamed Hegazy
parent
2d4997205e
commit
095474d038
3
types/mongoose/index.d.ts
vendored
3
types/mongoose/index.d.ts
vendored
@@ -7,6 +7,7 @@
|
||||
// jendrikw <https://github.com/jendrikw>
|
||||
// Ethan Resnick <https://github.com/ethanresnick>
|
||||
// vologa <https://github.com/vologab>
|
||||
// jussikinnula <https://github.com/jussikinnula>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@@ -356,6 +357,8 @@ declare module "mongoose" {
|
||||
domainsEnabled?: boolean;
|
||||
/** How long driver keeps waiting for servers to come back up (default: Number.MAX_VALUE) */
|
||||
bufferMaxEntries?: number;
|
||||
/** Use new url parser (default: false). */
|
||||
useNewUrlParser?: boolean
|
||||
|
||||
/** additional SSL configuration options */
|
||||
/** Array of valid certificates either as Buffers or Strings */
|
||||
|
||||
Reference in New Issue
Block a user