Techno Blender
Digitally Yours.
Browsing Tag

Destructuring

Using Destructuring and Inline Types Can Hurt Your TypeScript Codebase

Recently I saw a tweet by Jamie Kyle about using destructuring, default params, and inline types: That tweet and a few React components that I saw recently in my day job inspired me to write this blog post. I want to show you how using destructuring and inline types can make your TypeScript less readable!What does the TypeScript function definition look like? In JavaScript and TypeScript, you can define a function either using function keyword or lambda/arrow function. Both ways are valid but have their differences. Let's…