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

Even if I passed a type to useform, form.validateFields Always return Store type #27298

Open
1 task
Mamba-working opened this issue Oct 22, 2020 · 1 comment
Open
1 task
Labels

Comments

@Mamba-working
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Even if I passed a type to useform, form.validateFields Always return Store type

What is expected?

const [form] = useForm()
form.validateFields.then(res => {
const values = res; // values is IForm
})

What is actually happening?

Type is Store

Environment Info
antd 4.7.1
React 16.13.1
System mac os Catalina 10.15.7
Browser IE Edge 86.0.622.48
@zhuyunhe
Copy link

4.6.1 still has this issue

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

No branches or pull requests

3 participants