mongoose -- fix ctor

This commit is contained in:
mainnika
2016-02-09 17:37:16 +05:00
parent 72f0056f69
commit cebde64b3a
+1 -1
View File
@@ -178,7 +178,7 @@ declare module "mongoose" {
}
export interface Model<T extends Document> extends NodeJS.EventEmitter {
new(doc?: Object): T;
new(doc?: Object, fields?: Object, skipInit?: boolean): T;
aggregate(...aggregations: Object[]): Aggregate<T[]>;
aggregate(aggregation: Object, callback: (err: any, res: T[]) => void): Promise<T[]>;