mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
@types/mongoose: changed save overloads order
This commit is contained in:
Vendored
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user