Function: runHooks()
runHooks<
D
,K
>(hookable
,hooks
,event
):Promise
<void
>
Sequentially run multiple hooks of a hookable object.
Type parameters
• D extends HooksDefinition
• K extends string
| number
| symbol
Parameters
• hookable: Hookable
<D
>
• hooks: Arrayable
<K
>
• event: D
[K
] extends HookCallback
<E
> ? E
: never
Returns
Promise
<void
>