Skip to content

FormFieldArray children property types are missing #8

@Christopher2K

Description

@Christopher2K

Hi!

Starting a new project and decided to run with react zen!
So far so good. I noticed that the built in form system isn't really type safe.

One of the thing is that the FormFieldArray children callback type is set to (props: any) => ReactNode.
It doesn't really reflect the types { append: () => void; remove: (index: number) => void; control; fields; }; leading to error on the consumer side:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions