Skip to main content
Version: 2.x.x

interceptResponse


import { interceptResponse } from "@hyper-fetch/core"

Description

Defined in builder/builder.utils.ts:36

Preview

interceptResponse<GlobalErrorType>(interceptors, response, command)

Parameters

NameDetails

interceptors

Required

ResponseInterceptorCallback<any, any>[]

response

Required

ClientResponseType<any, GlobalErrorType>

command

Required

CommandInstance

Returns

Promise<ClientResponseType<any, GlobalErrorType>>