@avvyr/storefront-sdk - v0.19.0
    Preparing search index...

    Type Alias ErrorInterceptor

    ErrorInterceptor: (
        error: StorefrontApiError,
        ctx: RequestContext,
    ) => void | Promise<void>

    Runs when a request fails (HTTP error or network error). To transform the error, throw a new one — that replaces what the caller receives. Returning normally lets the original error continue to propagate.

    Type Declaration