before-after-hook
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -10,3 +10,3 @@ declare module "before-after-hook" { | ||
*/ | ||
(name: string | string[], options: any, method: (options: any) => Promise<any> | any): Promise<any> | ||
(name: string | string[], method: (options: any) => Promise<any> | any, options: any): Promise<any> | ||
/** | ||
@@ -46,7 +46,7 @@ * Add before hook for given name. Returns `hook` instance for chaining. | ||
*/ | ||
(options: T, method: (options: T) => T | null | void): Promise<T> | ||
(method: (options: T) => T | null | void, options: T): Promise<T> | ||
/** | ||
* Invoke before and after hooks with options | ||
*/ | ||
(options: T, method: (options: T) => Promise<T | null | void>): Promise<T> | ||
(method: (options: T) => Promise<T | null | void>, options: T): Promise<T> | ||
@@ -53,0 +53,0 @@ /** |
{ | ||
"name": "before-after-hook", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "asynchronous before/error/after hooks for internal functionality", | ||
@@ -5,0 +5,0 @@ "files": [ |