Skip to content

Commit

Permalink
馃悶 fix #9581 incorrect type for array of string for message
Browse files Browse the repository at this point in the history
  • Loading branch information
bluebill1049 committed Dec 13, 2022
1 parent d4e2134 commit 2b5b259
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion reports/api-extractor.md
Expand Up @@ -743,7 +743,7 @@ export type UseWatchProps<TFieldValues extends FieldValues = FieldValues> = {
export type Validate<TFieldValue> = (value: TFieldValue) => ValidateResult | Promise<ValidateResult>;

// @public (undocumented)
export type ValidateResult = Message | Message[] | boolean | undefined;
export type ValidateResult = Message | boolean | undefined;

// @public (undocumented)
export type ValidationMode = {
Expand Down
2 changes: 1 addition & 1 deletion src/types/validator.ts
Expand Up @@ -15,7 +15,7 @@ export type ValidationValueMessage<
message: Message;
};

export type ValidateResult = Message | Message[] | boolean | undefined;
export type ValidateResult = Message | boolean | undefined;

export type Validate<TFieldValue> = (
value: TFieldValue,
Expand Down

0 comments on commit 2b5b259

Please sign in to comment.