Ohans Emmanuel's Blog

What is a “.d.ts” file in TypeScript?

.d.ts files are called type declaration files. They exist for one purpose only: to describe the shape of an existing module and they only contain type information used for type checking.

In Typescript, what is the ! (exclamation mark / bang) operator?

This is technically called the non-null assertion operator. If the typescript compiler complains that a value could be null or undefined, you can use the ! operator to assert that the said value is NOT null or undefined.

Interfaces vs Types in Typescript

When beginning Typescript, you may find it confusing to settle on a choice. This article clears up the confusion and helps you choose which is right for you.

What is Typescript?

I published an Intermediate Typescript and React Handbook a few weeks ago. It received numerous views and I got several emails. Most were “thank you” emails, but then there were others like: “… I am new to programming, what is Typescript?” “Thanks for this free ebook, but how do I learn

Build Strongly-Typed Polymorphic Components with React and Typescript

Hey! 😎 In this detailed (and explanatory) guide, I’ll discuss how to build strongly typed Polymorphic React components with Typescript. If you have no idea what that means, that’s fine. That’s a decent pointer that this is just the right guide for you. Ready? Introduction Let’s get

Ohans Emmanuel's Blog © 2026