Skip to content

Commit 707669b

Browse files
authored
Merge pull request #16 from react-hook-form/improve/ValidateResult
improve ValidateResult type
2 parents 9000207 + 1569ae7 commit 707669b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export type FieldElement<TFieldValues extends FieldValues = FieldValues> =
6767

6868
export type Message = string;
6969

70-
export type ValidateResult = Message | boolean | undefined;
70+
export type ValidateResult = Message | Message[] | boolean | undefined;
7171

7272
export type MultipleFieldErrors = Record<string, ValidateResult>;
7373

0 commit comments

Comments
 (0)