Skip to content

Export SelectProps and Option #31

@timothyarmes

Description

@timothyarmes

In order to create a wrapper around Select, it's would be useful to be able to import the SelectProps and Option type. Currently this isn't exported. I can to this myself using some TS magic:

type SelectProps = (typeof Select) extends React.FC<infer X> ? X : never;
type Option = SelectProps["formatOptionLabel"] extends ((data: infer X) => JSX.Element) | null | undefined ? X : never;

but exporting the types would be the best solution

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