An object that maps hook names to their corresponding handler function types. The handler function type should accept a single payload argument.
Call all handlers registered for a hook. Handlers are called sequentially in registration order.
Remove a previously registered handler.
A boolean indicating whether the handler was found and removed.
A registry for managing and executing hook handlers. Handlers are executed sequentially in registration order.
Example