We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3a09b5 commit acbcd67Copy full SHA for acbcd67
src/index.d.ts
@@ -41,7 +41,7 @@ declare module 'async-validator' {
41
interface RuleItem {
42
type?: RuleType; // default type is 'string'
43
required?: boolean;
44
- pattern?: string;
+ pattern?: RegExp | string;
45
min?: number; // Range of type 'string' and 'array'
46
max?: number; // Range of type 'string' and 'array'
47
len?: number; // Length of type 'string' and 'array'
0 commit comments