discriminated union as props
is there anything noticeably wrong with this , when used like
I'm getting a "false is not assignable to boolean" error, but I thought this would be the only way to use discrimnated union to type narrow properly here.
0 Replies