@webilix/nestjs-helper
Version:
Helper library for NestJS
9 lines • 448 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Validator = void 0;
const Validator = (condition) => (target, property) => {
const args = Reflect.getMetadata('validator', target.constructor) || {};
Reflect.defineMetadata('validator', Object.assign(Object.assign({}, args), { [property]: condition }), target.constructor);
};
exports.Validator = Validator;
//# sourceMappingURL=validator.decorator.js.map