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

    Type Alias ResponseInterceptor

    ResponseInterceptor: (ctx: ResponseContext) => unknown | Promise<unknown>

    Runs after a successful response is parsed. Mutate ctx.data in place, OR return a non-undefined value to replace the data handed back to the caller (handy for shaping/normalizing payloads, e.g. transformProduct).

    Type Declaration