Skip to content

Commit

Permalink
fix: a little more definitive type
Browse files Browse the repository at this point in the history
  • Loading branch information
barelyhuman committed May 27, 2024
1 parent a82713e commit cbe2fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/atomWithFormControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type ActionableNext = {
export type FormControls<Keys extends string, Vals> = {
isValid: boolean;
fieldErrors: {
[k in Keys]: Error;
[k in Keys]: string | Error | any;
};
touched: Record<Keys, boolean>;
focused: Record<Keys, boolean>;
Expand Down

0 comments on commit cbe2fe3

Please sign in to comment.