@villedemontreal/general-utils
Version:
General utilities library
17 lines • 471 B
TypeScript
/**
* Represents a paginated result set. This follows the doc :
* https://villemontreal.atlassian.net/wiki/display/AES/REST+API#RESTAPI-Pagination.1
*/
export interface IPaginatedResult<T> {
paging: {
offset: number;
limit: number;
totalCount: number;
};
items: T[];
}
/**
* IPaginatedResult Type Guard
*/
export declare const isPaginatedResult: (obj: any) => obj is IPaginatedResult<any>;
//# sourceMappingURL=pagination.d.ts.map