ms-react-reactive-form
Version:
an implementation of the Reactive Form concept in React, supporting Javascript and Typescript
37 lines (36 loc) • 700 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class Validators {
static required() {
return {
required: true
};
}
static pattern(pattern) {
return {
pattern: pattern
};
}
static maxLength(maxLength) {
return {
maxLength: maxLength
};
}
static minLength(minLength) {
return {
minLength: minLength
};
}
static max(max) {
return {
max: max
};
}
static min(min) {
return {
min: min
};
}
}
exports.default = Validators;
;