Interface ApiXResponse<DataType>

A response object that is returned when a request is made with the ApiXRequest object.

interface ApiXResponse<DataType extends ApiXResponseData = ApiXResponseData> {
    data?: DataType;
    statusCode: number;
}

Type Parameters

Properties

Properties

data?: DataType

The JSON data returned by the API-X endpoint. This is optional because some endpoints may not return any data.

statusCode: number

The HTTP status code returned by the API-X endpoint.