@nhtio/hooks
Classes
| Class | Description |
|---|---|
| Hooks | A simple yet effective implementation for registering and executing lifecycle hooks around specific events. |
| Runner | Runner executes a set of hook handlers for a specific event and manages cleanup operations. |
Type Aliases
| Type Alias | Description |
|---|---|
| CleanupHandler | Shape of the cleanup handler function. |
| ExtractHookHandlerArgs | Utility type to extract argument types from a hook handler. |
| HookHandler | Shape of the hook handler function. |
| HookHandlerProvider | Hook represented as an object with a name and handle method. |
Variables
| Variable | Description |
|---|---|
| version | The current version of the package. |