Merge pull request #12852 from simonxca/patch-mongoose-types-2.0

Update types-2.0 to mongoose 4.6.8, clean up old issues fixes #11079
This commit is contained in:
Horiuchi_H
2016-11-22 11:00:43 +09:00
committed by GitHub
+6 -1
View File
@@ -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 <https://github.com/simonxca/>, horiuchi <https://github.com/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<void>;
/**
* 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 {