Function: paginate()
paginate(
page
): <C
>(action
) =>Promise
<Action
<Awaited
<C
> &object
,object
>>
Paginate the JSON:API resource by the given params. JSON:API specification on pagination is agnostic, so page params may be anything used by your implementation.
Parameters
• page: unknown
Returns
Function
Type parameters
• C extends object
Parameters
• action: Action
<C
>
Returns
Promise
<Action
<Awaited
<C
> & object
, object
>>