Vue OpenAPI Query Documentation
    Preparing search index...

    Type Alias ApiErrorOf<Ops, Op>

    ApiErrorOf: AxiosError<ExtractErrorData<Ops, Op>>

    The AxiosError type for operation Op, with its response.data typed to the union of JSON bodies declared for all error responses (4xx / 5xx / default). Falls back to AxiosError<unknown> for operations that declare no JSON error body.

    Type Parameters

    • Ops extends AnyOps
    • Op extends keyof Ops
    // Assuming operations.createVessel has a 422 response with JSON body:
    type E = ApiErrorOf<operations, 'createVessel'>
    // → AxiosError<{ code?: string; message?: string }>