mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
done-callback supports a optional error parameter
This commit is contained in:
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user