Skip to content

executeHooks

executeHooks<T>(hooks, …args): Promise<void>

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/llmUtils.ts:216

Utility function to execute hook(s) - either a single hook or an array of hooks Fully type-safe and works with any number of arguments

T extends (…args) => Promise<void>

T | T[] | undefined

Single hook function or array of hook functions (or undefined)

Parameters<T>

Arguments to pass to each hook function

Promise<void>