From 2ad81bfbeb5360b70c5100f51faf943586099270 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 21 Nov 2016 20:33:57 -0500 Subject: [PATCH] update to 4.6.8, clean up old issues fixes #11079 --- mongoose/index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 {