Skip to content

Commit

Permalink
added missing types to formApi
Browse files Browse the repository at this point in the history
  • Loading branch information
joepuzzo committed Dec 13, 2022
1 parent 39aab5b commit adcf2f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.37.1 (Dec 13th, 2022)

- added missing types to formApi

## 4.37.0 (Nov 29th, 2022)

- added ability to pass `keep` to form fields such that users can specify specific state to keep
Expand Down
5 changes: 4 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ export type FormApi = {
touchAllFields: () => void;
asyncValidate: () => void;
focusFirstError: () => void;
disable: () => void;
enable: () => void;
fieldExists: (fieldName: string) => boolean;
};

export type FieldState = {
Expand Down Expand Up @@ -369,7 +372,7 @@ declare namespace ArrayField {
declare function Multistep({
children
}: {
children: JSX.Element|JSX.Element[];
children: JSX.Element | JSX.Element[];
}): JSX.Element;

declare namespace Multistep {
Expand Down

0 comments on commit adcf2f1

Please sign in to comment.