Skip to main content
Hook Registry Manages lifecycle hooks for OMSS events.

Constructor

Returns

HookRegistry<T>

Properties

required
Get all registered hooks immutable.

Methods

add()

Add a hook handler for a lifecycle event.

Parameters

K
required
The hook name (key of THooks).
T[K]
required
The hook handler function.

reset()

Clear all registered hooks.

run()

Run all hooks for a lifecycle event with the provided payload.

Parameters

K
required
The hook name (key of THooks).
required
The payload to pass to each hook handler.

Returns

Promise<void>
Last modified on July 27, 2026