-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
[Package] Components/packages/components/packages/components[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Description
What problem does this address?
Currently, the CustomSelectControl component is not generic. In the following example, the option.foo property could not be inferred correctly in the onChange callback:
By making the props generic, ts could infer the selectedItem type correctly:
What is your proposed solution?
I'll create a PR to help implement it
Metadata
Metadata
Assignees
Labels
[Package] Components/packages/components/packages/components[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.