diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index 9cb4d6a7f7..6b214e7b41 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -99,7 +99,7 @@ declare module "mongoose" { export var SchemaTypes: typeof Schema.Types; /** Expose connection states for user-land */ - export var STATES: Object + export var STATES: Object; /** The default connection of the mongoose module. */ export var connection: Connection; /** The node-mongodb-native driver Mongoose uses. */ @@ -1307,7 +1307,7 @@ declare module "mongoose" { // constructor exposes static methods of mongodb.ObjectID and ObjectId(id) type ObjectIdConstructor = typeof mongodb.ObjectID & { (s?: string | number): mongodb.ObjectID; - } + }; // var objectId: mongoose.Types.ObjectId should reference mongodb.ObjectID not // the ObjectIdConstructor, so we add the interface below @@ -2198,7 +2198,7 @@ declare module "mongoose" { /** Provides promise for aggregate. */ then(resolve?: (val: T) => void | TRes | PromiseLike, - reject?: (err: any) => void | TRes | PromiseLike): Promise + reject?: (err: any) => void | TRes | PromiseLike): Promise; /** * Appends new custom $unwind operator(s) to this aggregate pipeline. @@ -2683,7 +2683,7 @@ declare module "mongoose" { /** optional query options like sort, limit, etc */ options?: Object; /** deep populate */ - populate?: ModelPopulateOptions | ModelPopulateOptions[] + populate?: ModelPopulateOptions | ModelPopulateOptions[]; } interface ModelUpdateOptions {