Is your feature request related to a problem? Please describe.
Limit the use of unions throughout charts in cases like onBrushEnd.
Describe the solution you'd like
There can be a generic provided in the Settings component instead of using union types throughout
Additional context
#1369 has some discussion #1369 (comment)
Add any other context or screenshots about the feature request here.
Link to helpful blog post https://wanago.io/2020/03/09/functional-react-components-with-generic-props-in-typescript/
Is your feature request related to a problem? Please describe.
Limit the use of unions throughout charts in cases like onBrushEnd.
Describe the solution you'd like
There can be a generic provided in the Settings component instead of using union types throughout
Additional context
#1369 has some discussion #1369 (comment)
Add any other context or screenshots about the feature request here.
Link to helpful blog post https://wanago.io/2020/03/09/functional-react-components-with-generic-props-in-typescript/