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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missed some properties in FormApi type #435

Closed
AmirL opened this issue Dec 13, 2022 · 1 comment
Closed

Missed some properties in FormApi type #435

AmirL opened this issue Dec 13, 2022 · 1 comment

Comments

@AmirL
Copy link

AmirL commented Dec 13, 2022

export type FormApi in index.d.ts is missing 3 properties described in docs.

I've fixed it by extending it, but I think it would be right to add it to "index.d.ts"

interface FormApiFixed extends FormApi {
  disable: () => void;
  enable: () => void;
  fieldExists: (fieldName: string) => boolean;
}

const formApi: FormApiFixed = formApiRef.current;
@joepuzzo
Copy link
Collaborator

Ok I have fixed this and published a new version thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants