Skip to content

Commit

Permalink
Allow the input for the validator to be unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
rzane committed Aug 17, 2020
1 parent 21cfac4 commit a31d80c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useValidate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function convert<T>(result: ValidationResult<T>): any {
*/
export function useValidate<Value, Result>(
form: Form<Value, Value>,
validator: Validator<Value, Result>,
validator: Validator<Value | unknown, Result>,
opts?: UseValidationOptions
): Form<Value, Result> {
return useValidation(
Expand Down

0 comments on commit a31d80c

Please sign in to comment.