diff --git a/mongoose/index.d.ts b/mongoose/index.d.ts
index 150d94b2df..3dc0b0d0b0 100644
--- a/mongoose/index.d.ts
+++ b/mongoose/index.d.ts
@@ -1,4 +1,4 @@
-// Type definitions for Mongoose 4.5.4
+// Type definitions for Mongoose 4.6.8
// Project: http://mongoosejs.com/
// Definitions by: simonxca , horiuchi
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -285,6 +285,9 @@ declare module "mongoose" {
open(connection_string: string, database?: string, port?: number,
options?: ConnectionOpenOptions, callback?: (err: any) => void): any;
+ /** Helper for dropDatabase() */
+ dropDatabase(callback?: (err: any) => void): Promise;
+
/**
* Opens the connection to a replica set.
* @param uris comma-separated mongodb:// URIs
@@ -659,6 +662,8 @@ declare module "mongoose" {
methods: any;
/** Object of currently defined statics on this schema. */
statics: any;
+ /** The original object passed to the schema constructor */
+ obj: any;
}
interface SchemaOptions {