Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悶 fix #9581 incorrect type for array of string for message #9584

Merged
merged 1 commit into from Dec 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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