mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-07 16:30:12 +08:00
mongoose -- fix ctor
This commit is contained in:
Vendored
+1
-1
@@ -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[]>;
|
||||
|
||||
Reference in New Issue
Block a user