@gergely.pragmaticengineer.com 1. Nullish Coalescing Operator to provide defaults.
2. Type Guards
I think would be my goto ways to solve it. The other two approaches don’t seem as maintainable.
@gergely.pragmaticengineer.com 1. Nullish Coalescing Operator to provide defaults.
2. Type Guards
I think would be my goto ways to solve it. The other two approaches don’t seem as maintainable.