ms-react-reactive-form
Version:
an implementation of the Reactive Form concept in React, supporting Javascript and Typescript
21 lines (20 loc) • 458 B
TypeScript
export default class Validators {
static required(): {
required: boolean;
};
static pattern(pattern: RegExp): {
pattern: RegExp;
};
static maxLength(maxLength: number): {
maxLength: number;
};
static minLength(minLength: number): {
minLength: number;
};
static max(max: number): {
max: number;
};
static min(min: number): {
min: number;
};
}