Sometimes, we want to import two exported classes with the same name with TypeScript. In…
Month: April 2022
Sometimes, we want to specify the return type in a TypeScript arrow function. In this…
Sometimes, we want to fix the ‘TypeScript ReferenceError: exports is not defined’ with TypeScript. In…
Sometimes, we want to declare return types for functions in TypeScript. In this article, we’ll…
Sometimes, we want to define a singleton in TypeScript. In this article, we’ll look at…
Sometimes, we want to mock dependency in Jest with TypeScript. In this article, we’ll look…
Sometimes, we want to set a typed variable to an empty object with TypeScript. In…
Sometimes, we want to disable a TypeScript rule for a specific line. In this article,…
Sometimes, we want to fix the ‘cannot redeclare block scoped variable’ error with TypeScript. In…
Sometimes, we want to create a function that accept an unlimited number of arguments with…