Skip to content

attachRestResponseTransform

attachRestResponseTransform(instance, options): void

Defined in: packages/api-client/src/rest/client/responseTransform.ts:27

Attach the REST response transform to an apisauce instance.

Mutates response.data into APIResponse<T> shape so service callers can branch on response.data?.isErr without try/catch.

ApisauceInstance

RestResponseTransformOptions

void