An interface to tell the API how the returned Array should be like

interface Config {
    cursor_string?: string;
    limit?: number;
    page?: number;
    sort?: "id_desc" | "id_asc";
}

Properties

cursor_string?: string

A cursor_string provided by a previous request

limit?: number

The maximum amount of elements to get

page?: number

Which page of the results to get

sort?: "id_desc" | "id_asc"

"id_asc" to have the oldest element first, "id_desc" to have the newest instead