Skip to content

Make IconType a restricted union #624

@fateeand

Description

@fateeand

Currently, IconType is defined as:

export type IconType = (typeof iconNames)[number];`

Since iconNames is currently typed as a string[], IconType effectively resolves to string. We need to update it to produce a restricted string union instead, which will introduce a breaking change for consumer apps.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions