Type alias HttpResponse<T>
HttpResponse<T>: {
data: {
data: T;
};
links?: {
first: string;
last: string;
next: string;
prev: string;
};
meta?: {
limitReached: boolean;
page: {
totalCount: number;
totalPages: number;
};
};
ok: true;
status: 200;
} & Response | {
data: null;
ok: true;
status: 204;
} & Response | {
data: null | {
errors: any[];
};
ok: false;
} & Response