TypeScript

Creating new TypeScript types using template literal types

TypeScript is way more powerful than I give it credit for. I recently learned about creating new TypeScript types using…

3 months ago

React TypeScript: Simplify Imports with Path Aliases

As codebases grow larger and more complex in structure, imports can become unmanageable. As more directories are added, imports become…

3 months ago

Fix Cannot find module ‘fs’ or its corresponding type declarations.ts(2307)

I recently ran into the error "Cannot find module 'fs' or its corresponding type declarations.ts(2307)" while I was using VSCode…

3 months ago

Using utility types for transforming TypeScript types

TypeScript provides some built-in utility types that help facilitate transformations of types from one form to another. These utilities are…

3 years ago

TypeScript: the difference between interface and type

Once we start exploring TypeScript, we start using interfaces and types without really understanding the differences between them. I am…

3 years ago

How to setup GatsbyJS starter with TypeScript and ESLint

Gatsby has become fairly popular in the last couple of years and it has starting becoming the go to static…

4 years ago
Advertisements