-
Notifications
You must be signed in to change notification settings - Fork 47
Closed
Description
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
Labels
No labels