@types/mongoose: changed save overloads order

This commit is contained in:
Fábio Batista
2017-04-17 15:21:23 -03:00
parent f44a1808a5
commit ac1a97d16b
+1 -1
View File
@@ -2550,8 +2550,8 @@ declare module "mongoose" {
* @param options.validateBeforeSave set to false to save without validating.
* @param fn optional callback
*/
save(options?: SaveOptions, fn?: (err: any, product: this, numAffected: number) => void): Promise<this>;
save(fn?: (err: any, product: this, numAffected: number) => void): Promise<this>;
save(options: SaveOptions, fn?: (err: any, product: this, numAffected: number) => void): Promise<this>;
/**
* Version using default version key. See http://mongoosejs.com/docs/guide.html#versionKey