Extract the union of JSON body types declared for error responses. Equivalent to the response.data type of ApiErrorOf<Ops, Op>.
response.data
ApiErrorOf<Ops, Op>
Use this when you need the raw error payload type (not wrapped in AxiosError).
AxiosError
type E = ApiErrorData<operations, 'createVessel'>// → { code?: string; message?: string }// (`undefined` only appears via optional chaining on `error.response`,// it is not part of `ApiErrorData` itself) Copy
type E = ApiErrorData<operations, 'createVessel'>// → { code?: string; message?: string }// (`undefined` only appears via optional chaining on `error.response`,// it is not part of `ApiErrorData` itself)
Extract the union of JSON body types declared for error responses. Equivalent to the
response.datatype ofApiErrorOf<Ops, Op>.Use this when you need the raw error payload type (not wrapped in
AxiosError).