StatamicApiResponseMultiple

Response for fetching multiple resources from Statamic API.

Type Definition

Includes pagination metadata and links.

type 
StatamicApiResponseMultiple
<
DataType
extends
Record
<string, any> =
StatamicApiEntryDefaultFields
> = {
data
:
DataType
[];
links
: {
first
: string;
last
: string;
prev
: string | null;
next
: string | null;
};
meta
: {
current_page
: number;
last_page
: number;
links
: {
active
: boolean;
label
: string;
url
: string | null;
};
from
: number;
to
: number;
total
: number;
per_page
: number;
path
: string;
}; };