Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added tsx generic typing for FieldArray #88

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.

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

Successfully merging this pull request may close these issues.

2 participants