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 field *length* in flow type in *fields* #164

Open ViktorAksionov opened 3 years ago

ViktorAksionov commented 3 years ago

Due missing field length in fields by accessing it i get flow type error despite the fact that this field exists.

Are you submitting a bug report or a feature request?

Bug

What is the current behavior?

Missing flow type for a field length

in here:

export type FieldArrayRenderProps = {
  fields: {
   ...
    length: number,  // <<== this line need to be added
  },
  meta: Meta
}

What is the expected behavior?

Need to add missing type

What's your environment?

Latest version of Final Form Arrays