AniLink - v3.0.0
    Preparing search index...

    Type Alias OnHookErrorHandler

    OnHookErrorHandler: (hookName: string, error: unknown) => void

    A callback invoked when a user-supplied lifecycle hook throws. Throwing hooks never affect the request pipeline; this callback only observes the failure so it can be routed to a logger or metrics backend. When unset, hook failures fall back to a console.warn carrying a structured AniLinkDiagnostic record.

    Type Declaration

      • (hookName: string, error: unknown): void
      • Parameters

        • hookName: string
        • error: unknown

        Returns void