Conditionally required types
Someone that has any ideas on how I can make everything required if accepted is true, if it's false then the other 3 fields are not required.
3 Replies
this logic seems off
How's this?
Could also move
accuracy
, longitude
and latitude
into a separate type and Partial
it for the accepted: false
caseI would rather overload here than this but yeh