Sometimes, we want to define a singleton in TypeScript. In this article, we’ll look at…
Coding
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…
Sometimes, we want to fix the ‘tsc command not found’ error when compiling TypeScript. In…
Sometimes, we want to derive union type from tuple or array values with TypeScript. In…