Object destructuring in TypeScript
The cool part about TypeScript is that we can define types for certain variables.
However, there is a scenario that might prove a bit difficult.
And this is destructuring an object.
Let's take the following example:
const user = {firstname: 'Chris', ...
h.daily-dev-tips.com2 min read
James 'Dante' Midzi
Solutiions Architect | Writer | Polyglot
I spent a good 3 hours trying to figure out why my site wasn't deploying.
I thought of Typescript during that time, and even more when I found out what the issue was