mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #31232 from tiant167/master
[@types/mongoose] add autoIndex at top level of connection options
This commit is contained in:
Vendored
+1
@@ -424,6 +424,7 @@ declare module "mongoose" {
|
||||
*/
|
||||
autoIndex?: boolean;
|
||||
};
|
||||
autoIndex?: boolean;
|
||||
}
|
||||
|
||||
/** See the node-mongodb-native driver instance for options that it understands. */
|
||||
|
||||
@@ -27,7 +27,8 @@ const connection2: Promise<mongoose.Mongoose> = mongoose.connect(connectUri, {
|
||||
bufferCommands: false,
|
||||
useNewUrlParser: true,
|
||||
useFindAndModify: true,
|
||||
useCreateIndex: true
|
||||
useCreateIndex: true,
|
||||
autoIndex: true
|
||||
});
|
||||
const connection3: null = mongoose.connect(connectUri, function (error) {
|
||||
error.stack;
|
||||
|
||||
Reference in New Issue
Block a user