Sometimes, we want to define an array of strings in a TypeScript interface. In this…
Month: April 2022
Sometimes, we want to omit some items from an enum in TypeScript. In this article,…
Sometimes, we want to use promise generic types with TypeScript. In this article, we’ll look…
Sometimes, we want to use Moment.js with TypeScript. In this article, we’ll look at how…
Sometimes, we want to add return type for a function that returns another function in…
Sometimes, we want to get the type of a property of a TypeScript class using…
Sometimes, we want to declare a type globally in a project with TypeScript. In this…
Sometimes, we want to fix the Typescript ‘Duplicate function implementation’ error. In this article, we’ll…
Sometimes, we want to fix TypeScript errors on withRouter after updating version with React Router.…
Sometimes, we want to create a TypeScript interface for objects with some known and some…