[Solved] Conditional types
I was reading the TS docs but I can't seem to grasp this concept very well.
I have the following interface:
I want to let TypeScript know that my body is always available if "hasErrored" is false instead of checking if body exists in the first place.
Thank you in advance!
3 Replies