Dynamic type based on another value
Given a theoretical example like this:
Is it possible to only have
clauses
be required if agree
is true
?4 Replies
Or of a type with "true"
And a type with false
AAAHHHH
Narrowing 🫠
Thank you!
Not even that. Just use a discriminated union, like you would with raw TS.
Thank you 🙏🙏🙏