birdofpreyru/react-utils

`<CustomDropdown>` and `<Switch>` have problematic typing (`ValueT` is `number` | `string`)

Opened this issue · 0 comments

This typing disallows to assign onChange with a setter accepting only, say, a string when the value is just string in provided options.

PropsT<React.ReactNode, (value: ValueT) => void>