InputControl: See if reducer actions can be typed better #43945
Labels
[Package] Components
/packages/components
[Type] Code Quality
Issues or PRs that relate to code quality
Projects
What problem does this address?
Reducer functions currently require a bit of typecasting to result in valid TypeScript, since the action's
event
is not typed according to the specific triggering action.Some examples
What is your proposed solution?
See if we can use generics to type the actions so consumers can use type narrowing to get the correct event type in their reducer functions.
The text was updated successfully, but these errors were encountered: