Handling Safe Destructuring in TypeScript
It's common in JavaScript code to accept objects as parameters in functions and setting them to an empty object by default to allow safe destructuring. In this post I'll cover how to handle this pattern in TypeScript.
Tags: typescript, javascript, refactoring, softwarequality