Replies: 1 comment 4 replies
-
@Partiya I see what you mean — I've been wrestling with these prop types for a while, and this is the best I could come up with. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
can we just have better typescript type definition so we can dynamicly change between 2 modes using a single states
something like this in react for example
const [mode,setMode] = usestate<Mode>('single') // or 'range' ...
in my case i had to create 2 diffrent date components just to be able to get rid of typescript errors to switch between 2 modes dynamicly
Beta Was this translation helpful? Give feedback.
All reactions