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…
Sometimes, we want to require one of two properties to exist in a TypeScript interface.…
Sometimes, we want to fix the “TypeScript error: Property ‘X’ does not exist on type…