@herlinus/coloquent
Version:
Library for retrieving model objects from a JSON-API, with a fluent syntax inspired by Laravel Eloquent.
14 lines (13 loc) • 571 B
TypeScript
import { PaginationSpec } from "./PaginationSpec";
import { QueryParam } from './../QueryParam';
export declare class PageBasedPaginationSpec extends PaginationSpec {
protected pageNumberParamName: string;
protected pageSizeParamName: string;
protected pageLimit: number;
protected pageNumber: number;
private queryParams;
constructor(pageNumberParamName: string, pageSizeParamName: string, pageLimit: number);
getPaginationParameters(): QueryParam[];
setPage(page: number): void;
setPageLimit(pageLimit: number): void;
}