Sometimes, we want to require one of two properties to exist in a TypeScript interface.…
Month: April 2022
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…
Sometimes, we want to ignore a particular directory or file for TypeScript tslint. In this…
Sometimes, we want to make all properties within a TypeScript interface optional. In this article,…
Sometimes, we want to define type of async function with TypeScript. In this article, we’ll…
Sometimes, we want to use optional chaining with array or functions with TypeScript. In this…
Sometimes, we want to specify that a class property is an integer with TypeScript. In…
Sometimes, we want to create enum like type in TypeScript. In this article, we’ll look…