Switch Mongoose post hook overload order

Fixes incorrect selection of function overload
This commit is contained in:
Wose
2018-11-22 09:46:16 -05:00
parent 28be0fcccb
commit ff1e9ee253
+3 -3
View File
@@ -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;
/**