Skip to content

Commit

Permalink
fix(core): resolve 'Excessive stack depth comparing types' error (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mini-ghost authored Dec 19, 2023
1 parent 009ff62 commit 015883a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/composables/useForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ type FormMessage<Values extends FormValues> =
type: ACTION_TYPE.SET_FIELD_ERROR;
payload: {
path: string;
error: FormErrors<PathValue<Values, Path<Values>>> | string | string[];
error: FieldError<PathValue<Values, Path<Values>>> | string | string[];
};
}
| { type: ACTION_TYPE.SET_ISSUBMITTING; payload: boolean }
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export type UseFormSetFieldError<Values extends FormValues> = <
Name extends Path<Values>,
>(
name: Name,
error: FormErrors<PathValue<Values, Name>> | string | string[],
error: FieldError<PathValue<Values, Name>> | string | string[],
) => void;

export interface FormResetState<Values extends FormValues = FormValues> {
Expand Down

0 comments on commit 015883a

Please sign in to comment.