Hello,
What's the best way of accessing deeply nested values in a partial object using conditional types, or return "undefined" otherwise?
I tried doing this: https://tsplay.dev/wjD6Mm
But it returns "unknown" instead of "undefined" when I don't pass values 🤔
Thanks for your help!
The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.