Interface BaseHook<T, BeforeHookReturn, HooksReturn>

interface BaseHook<T, BeforeHookReturn, HooksReturn> {
    after?(hookContext: Readonly<HookContext<T>>, evaluationDetails: EvaluationDetails<T>, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
    before?(hookContext: BeforeHookContext, hookHints?: Readonly<Record<string, unknown>>): BeforeHookReturn;
    error?(hookContext: Readonly<HookContext<T>>, error: unknown, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
    finally?(hookContext: Readonly<HookContext<T>>, evaluationDetails: EvaluationDetails<T>, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
}

Type Parameters

Methods