Mongoose - pre hook methods update (#28905)

Missing methods for pre hook
This commit is contained in:
Dyma
2018-09-17 00:35:03 -07:00
committed by Ryan Cavanaugh
parent e869f8ca81
commit f43a4d63c1
+6 -2
View File
@@ -697,7 +697,9 @@ declare module "mongoose" {
| "findOne"
| "findOneAndRemove"
| "findOneAndUpdate"
| "update",
| "update"
| "updateOne"
| "updateMany",
fn: HookSyncCallback<T>,
errorCb?: HookErrorCallback
): this;
@@ -730,7 +732,9 @@ declare module "mongoose" {
| "findOne"
| "findOneAndRemove"
| "findOneAndUpdate"
| "update",
| "update"
| "updateOne"
| "updateMany",
parallel: boolean,
fn: HookAsyncCallback<T>,
errorCb?: HookErrorCallback