Skip to content

@nhtio/hooks

Classes

ClassDescription
HooksA simple yet effective implementation for registering and executing lifecycle hooks around specific events.
RunnerRunner executes a set of hook handlers for a specific event and manages cleanup operations.

Type Aliases

Type AliasDescription
CleanupHandlerShape of the cleanup handler function.
ExtractHookHandlerArgsUtility type to extract argument types from a hook handler.
HookHandlerShape of the hook handler function.
HookHandlerProviderHook represented as an object with a name and handle method.

Variables

VariableDescription
versionThe current version of the package.