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

FormProps returns any in Form component #129

Open
lexeech opened this issue Apr 19, 2021 · 1 comment
Open

FormProps returns any in Form component #129

lexeech opened this issue Apr 19, 2021 · 1 comment

Comments

@lexeech
Copy link
Contributor

lexeech commented Apr 19, 2021

FormProps expects values and if there're no values it returns any. Is there any way to declare values or it's a bug and you should fix it?

image

image

https://github.com/react-component/field-form/blob/master/src/Form.tsx
https://github.com/ebs-integrator/react-ebs-ui/blob/master/src/components/organisms/Form/Form.tsx

@marcellefter
Copy link
Member

@lexeech I'm not sure about FormProps if it is a bug or a missed implementation, we'll check and will come with feedback or bug fix. In the case with getFieldsError I can't reproduce, my vscode always show the right type, I tested in both places(kit and real project):
image

Can you provide more information or a use case where we can reproduce the bug?

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