Documentation / @zerotal/client / index / ResponseInterceptor
Type Alias: ResponseInterceptor
ResponseInterceptor = (
ctx) =>ResponseContext|Promise<ResponseContext>
Defined in: client/src/ApiClient.ts:62
Called after every successful (2xx) response, before the parsed body is returned. Must return
the (possibly mutated) ResponseContext. Useful for unwrapping API envelopes, logging, etc.
Parameters
ctx
Returns
ResponseContext | Promise<ResponseContext>