Skip to content

Added tsx generic typing for FieldArray #88

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

Merged
merged 1 commit into from
Jun 14, 2019

Conversation

ChadLefort
Copy link
Contributor

Depends on:
final-form/react-final-form#522
final-form/final-form#225

This should allow for types to be passed to a FieldArray like so:

<FieldArray<{ firstName: string, lastName: string }> name="people">
  {({ fields: { value } }) => {
      // value will have a type now
  }}
</FieldArray>

@erikras
Copy link
Member

erikras commented Jun 14, 2019

Published in v3.1.0.

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

Successfully merging this pull request may close these issues.

2 participants