Skip to content

Element-typed component inputs (array of string) #102

Description

@taras

Problem

Component input types stop at string | number | boolean | array | object | any — an array input cannot declare its element type. From review of
ReleaseSpecWarning (files is an array of path strings): "can we say array
of strings here?" An unknown type string fails every validation, so this is
not expressible today.

Proposal

Element-typed arrays in InputDefinition + validate.ts (syntax open:
array<string> or items:), with spec coverage in executable-mdx-spec and
tests. ReleaseSpecWarning.files becomes the first user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions