Type Alias
EntityRetriever<T>
On this page
type EntityRetriever<T> = {
retrieve: (
limit?: number,
cursor?: OptionalPageCursor,
) => Promise<PaginatedEntity<T>>;
}Type Parameters
Properties
retrieve
retrieve: (
limit?: number,
cursor?: OptionalPageCursor,
) => Promise<PaginatedEntity<T>>Retrieves a page of the data
Type Declaration
Parameters
Optionallimit: numbermaximum number of entries in the returned page
Optionalcursor: OptionalPageCursorwhere the page starts
Returns Promise<PaginatedEntity<T>>
a page staring at cursor location and containing at most
limitnumber of items.
(limit?: number, cursor?: OptionalPageCursor): Promise<PaginatedEntity<T>>