UNPKG

para-client-js

Version:

JavaScript Client for Para

26 lines (25 loc) 868 B
/** * This class stores pagination data. It limits the results for queries in the DAO * and Search objects and also counts the total number of results that are returned. * @author Alex Bogdanovski <alex@erudika.com> * @param {Number} page page number to start from * @param {String} sortby sort by field * @param {Boolean} desc sort in descending or ascending order * @param {Number} limit limits the results * * @property {Number} count the total number of results * @property {String} lastKey reserved use * @property {Array} select selected fields filter for returning only part of an object * @returns {Pager} a pager */ export default class Pager { constructor(page: any, sortby: any, desc: any, limit: any); page: any; count: number; sortby: any; desc: any; limit: any; name: string; lastKey: any; select: any; }