@villedemontreal/general-utils
Version:
General utilities library
16 lines • 453 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isPaginatedResult = void 0;
/**
* IPaginatedResult Type Guard
*/
const isPaginatedResult = (obj) => {
return (obj &&
'paging' in obj &&
'offset' in obj.paging &&
'limit' in obj.paging &&
'totalCount' in obj.paging &&
'items' in obj);
};
exports.isPaginatedResult = isPaginatedResult;
//# sourceMappingURL=pagination.js.map