Skip to content

ArrayField initialValue prop type is not correct #485

@SamSamskies

Description

@SamSamskies

Describe the bug
TypeScript complains when trying to set initialValue to an array with more than 1 item when you should be able to initialize it with more than 1 item. I think the type should be unknown[] and not [unknown].

initialValue?: [unknown];

To Reproduce

Initialize ArrayField component with an array like in the example provided in the docs.

https://teslamotors.github.io/informed/getting-started/array-field

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