UNPKG

452 BTypeScriptView Raw
1/**
2 * An utility service for pagination
3 */
4export declare class JhiPaginationUtil {
5 constructor();
6 /**
7 * Method to find whether the sort is defined
8 */
9 parseAscending(sort: string): boolean;
10 /**
11 * Method to query params are strings, and need to be parsed
12 */
13 parsePage(page: string): number;
14 /**
15 * Method to sort can be in the format `id,asc` or `id`
16 */
17 parsePredicate(sort: string): string;
18}