react-hook-form
Advanced tools
Comparing version 0.1.4 to 0.1.5
declare type Validate = (data: string | number) => boolean; | ||
declare type NumberOrDate = number | Date; | ||
export interface RegisterInput { | ||
ref: HTMLInputElement | HTMLSelectElement | null; | ||
required?: boolean; | ||
min?: number | Date; | ||
max?: number | Date; | ||
min?: NumberOrDate; | ||
max?: NumberOrDate; | ||
maxLength?: number; | ||
pattern?: RegExp; | ||
validate?: Validate; | ||
validate?: Validate | { | ||
[key: string]: Validate; | ||
}; | ||
minLength?: number; | ||
@@ -15,4 +18,4 @@ } | ||
required?: boolean; | ||
min?: number | Date; | ||
max?: number | Date; | ||
min?: NumberOrDate; | ||
max?: NumberOrDate; | ||
maxLength?: number; | ||
@@ -19,0 +22,0 @@ pattern?: RegExp; |
{ | ||
"name": "react-hook-form", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.es.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34087
772