final-form / react-final-form-arrays

A component for rendering and editing arrays 🏁 React Final Form
MIT License
205 stars 70 forks source link

Missing public type FieldArrayRenderProps for importing. #146

Open viktor-equinix opened 4 years ago

viktor-equinix commented 4 years ago

Are you submitting a bug report or a feature request?

Feature request

What is the current behavior?

Missing public type FieldArrayRenderProps, instead of that now I need to import from private place which can be changed in any version

import type { FieldArrayRenderProps } from 'react-final-form-arrays/dist/types'; // <-- this
...
type FinalFormArrayFieldType = $PropertyType<FieldArrayRenderProps, 'fields'>

What is the expected behavior?

import type { FieldArrayRenderProps } from 'react-final-form-arrays'; // <-- expect this
...
type FinalFormArrayFieldType = $PropertyType<FieldArrayRenderProps, 'fields'>