Cursor Pagination
Cursor-based pagination request and response with next cursor and has-more flag.
api
Install
$ npx shadcn@latest add @open-types/cursor-pagination
Source
export interface CursorPaginationRequest {
cursor?: string;
limit?: number;
}
export interface CursorPaginationResponse {
items: unknown[];
next_cursor: string | null;
has_more: boolean;
total?: number;
}
export interface CursorPaginationRequest {
cursor?: string;
limit?: number;
}
export interface CursorPaginationResponse {
items: unknown[];
next_cursor: string | null;
has_more: boolean;
total?: number;
}