mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Switch Mongoose post hook overload order
Fixes incorrect selection of function overload
This commit is contained in:
Vendored
+3
-3
@@ -811,11 +811,11 @@ declare module "mongoose" {
|
||||
* @param fn callback
|
||||
*/
|
||||
post<T extends Document>(method: string, fn: (
|
||||
error: mongodb.MongoError, doc: T, next: (err?: NativeError) => void
|
||||
) => void): this;
|
||||
doc: T, next: (err?: NativeError) => void
|
||||
) => void): this;
|
||||
|
||||
post<T extends Document>(method: string, fn: (
|
||||
doc: T, next: (err?: NativeError) => void
|
||||
error: mongodb.MongoError, doc: T, next: (err?: NativeError) => void
|
||||
) => void): this;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user