Interface Hook<T>

Type Parameters

Hierarchy

  • Hook

Methods

  • Runs after flag values are successfully resolved from the provider.

    Parameters

    Returns void | Promise<void>

  • Runs in the event of an unhandled error or promise rejection during flag resolution, or any attached hooks.

    Parameters

    • hookContext: Readonly<HookContext<T>>
    • error: unknown
    • Optional hookHints: Readonly<Record<string, unknown>>

    Returns void | Promise<void>

  • Runs after all other hook stages, regardless of success or error. Errors thrown here are unhandled by the client and will surface in application code.

    Parameters

    • hookContext: Readonly<HookContext<T>>
    • Optional hookHints: Readonly<Record<string, unknown>>

    Returns void | Promise<void>

Generated using TypeDoc