Sometimes, we want to add types to class constructor in TypeScript. In this article, we’ll…
Month: April 2022
Sometimes, we want to create a strongly typed array of arrays in TypeScript. In this…
Sometimes, we want to make a single property optional in TypeScript. In this article, we’ll…
Sometimes, we want to add type aliases with TypeScript. In this article, we’ll look at…
Sometimes, we want to merge two interfaces with TypeScript. In this article, we’ll look at…
Sometimes, we want to declare a function that throws an error in TypeScript. In this…
Sometimes, we want to use enum as index key type in TypeScript. In this article,…
Sometimes, we want to use typed arrays with TypeScript. In this article, we’ll look at…
Sometimes, we want to fix the “Property ‘includes’ does not exist on type ‘string[]’” error…
Sometimes, we want to use enums inside a class with TypeScript In this article, we’ll…