@cognigy/rest-api-client
Version:
Cognigy REST-Client
11 lines • 324 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseLimit = void 0;
const parseLimit = (limit) => {
if (typeof limit === "undefined") {
return undefined;
}
return Math.max(parseInt(limit, 10), 1);
};
exports.parseLimit = parseLimit;
//# sourceMappingURL=limit.js.map