Vue OpenAPI Query Documentation
    Preparing search index...

    Type Alias ApiErrorData<Ops, Op>

    ApiErrorData: ExtractErrorData<Ops, Op>

    Extract the union of JSON body types declared for error responses. Equivalent to the response.data type of ApiErrorOf<Ops, Op>.

    Use this when you need the raw error payload type (not wrapped in AxiosError).

    Type Parameters

    • Ops extends AnyOps
    • Op extends keyof Ops
    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)