TypeScript

TypeScript

Exploring template literal types in TypeScript

Follow me along as I explore two new features of TypeScript 4.1, template literal types and recursive conditional types. All this to create a typed version of a function that reads data from an API.

Read
TypeScript

Barrel files: to use or not to use?

How to use barrel files in our projects. Should you use them? If yes, how to organize code around them and where to place these files. Read on to find out more.

Read
TypeScript

Use absolute paths for module imports

Handling imports is a bit more trickier to manage due to paths and constant refactoring that one will do inside a more complex application.

Read