Constructor
Returns
HookRegistry<T>
Properties
required
Get all registered hooks immutable.
Methods
add()
Parameters
K
required
The hook name (key of THooks).
T[K]
required
The hook handler function.
reset()
run()
Parameters
K
required
The hook name (key of THooks).
required
The payload to pass to each hook handler.
Returns
Promise<void>