diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index f166d8eefa..cd7bb438d4 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -628,7 +628,7 @@ declare module "mongoose" { /** * Defines a pre hook for the document. */ - pre(method: string, parallel: boolean, fn: (next: (err?: NativeError) => void, done: () => void) => void, + pre(method: string, parallel: boolean, fn: (next: (err?: NativeError) => void, done: (err?: NativeError) => void) => void, errorCb?: (err: Error) => void): this; pre(method: string, fn: (next: (err?: NativeError) => void) => void, errorCb?: (err: Error) => void): this;