mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
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:
commit
b6b22d52ee
7
mongoose/index.d.ts
vendored
7
mongoose/index.d.ts
vendored
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user