"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TransformBoolean = exports.TransformInteger = exports.TransformArray = void 0;
const class_transformer_1 = require("@golemio/core/dist/shared/class-transformer");
const TransformArray = () => (0, class_transformer_1.Transform)(({ value }) => (Array.isArray(value) ? value : [value]));
exports.TransformArray = TransformArray;
const TransformInteger = () => (0, class_transformer_1.Transform)(({ value }) => parseInt(value, 10));
exports.TransformInteger = TransformInteger;
const TransformBoolean = () => (0, class_transformer_1.Transform)(({ value }) => value === "true");
exports.TransformBoolean = TransformBoolean;
//# sourceMappingURL=transformers.js.map