zeebe-node
Version:
The Node.js client library for the Zeebe Workflow Automation Engine.
18 lines • 476 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Utils = void 0;
class Utils {
/**
* Throw an Error if the variable passed is not a number
*/
static validateNumber(variable, field) {
const value = Number(variable);
if (!Number.isInteger(value)) {
throw new Error(`
${field} is malformed, value : ${variable}
`);
}
}
}
exports.Utils = Utils;
//# sourceMappingURL=utils.js.map
;