Open birdofpreyru opened 2 months ago
This typing disallows to assign onChange with a setter accepting only, say, a string when the value is just string in provided options.
onChange
string
https://github.com/birdofpreyru/react-utils/blob/d83994a5ee0e130fc85ee32d891ec8d19a295da3/src/shared/components/selectors/CustomDropdown/index.tsx#L20
This typing disallows to assign
onChange
with a setter accepting only, say, astring
when the value is juststring
in provided options.https://github.com/birdofpreyru/react-utils/blob/d83994a5ee0e130fc85ee32d891ec8d19a295da3/src/shared/components/selectors/CustomDropdown/index.tsx#L20