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.
Parameters
Section titled “Parameters”instance
Section titled “instance”ApisauceInstance
options
Section titled “options”Returns
Section titled “Returns”void