Type alias APIResponse<Data>

APIResponse<Data>: {
    data: Data;
    status: "ok";
    url: URL;
}

Represents a response from the API.

Type Parameters

  • Data

Type declaration

  • data: Data

    The data returned by the response.

  • status: "ok"

    The status of the response.

  • url: URL

    The url used to get this response.