Questions

TypeScript questions

Choose a question page, learn the concept, then test your understanding with a quiz.

Check Whether a String Is Numeric in TypeScript

Learn reliable ways to check whether a TypeScript string is a valid number, avoiding parseFloat partial parsing and isNaN type errors.

typescript

Configure Single Quotes for TypeScript Auto Imports in WebStorm and PhpStorm

Learn how to configure WebStorm and PhpStorm to generate TypeScript auto-import statements with single quotes and preserve project style.

typescriptintellij-ideaphpstormwebstorm

Creating Empty Typed Arrays in TypeScript

Learn how to declare empty typed arrays in TypeScript, initialize them safely, and avoid confusing an array type with one object.

typescriptjavascriptarrays

Difference Between .ts and .tsx in React TypeScript

Learn when to use .ts vs .tsx in React TypeScript projects, with examples, common mistakes, and practical usage patterns.

typescriptreactjs

Extend the Express Request Object with TypeScript

Learn how to add typed custom properties to Express Request objects using TypeScript declaration merging and middleware safely.

typescriptnode.jsexpress

Extract Interface Property Types in TypeScript with Indexed Access Types

Learn how to reuse a TypeScript interface property type with indexed access types, avoiding duplicate interfaces and keeping library types in sync.

typescripttypingdefinitelytyped

Filter *ngFor Lists with Pipes in Angular

Learn how to filter Angular *ngFor lists using component methods and custom pipes, including structural directive rules and performance tips.

typescriptangular

Filter Null and Undefined from Arrays in TypeScript

Learn how to filter null values from arrays in TypeScript with strictNullChecks using type guards and get a safe string[] result.

typescriptnull

Fix "Element implicitly has an 'any' type" in TypeScript Object Indexing

Learn why TypeScript rejects string object indexing and how to fix it with keyof, unions, and typed object keys in React.

typescript

Fix "Property has no initializer" in Angular TypeScript Components

Learn why Angular TypeScript shows "Property has no initializer" and how to fix it using defaults, optional properties, or definite assignment.

typescriptangular

Fix 'Could not find a declaration file for module' in TypeScript

Learn why TypeScript cannot find declaration files for a package and how to fix it with types, package.json, and module resolution.

typescriptnode-modules

Fix Angular HTTP GET map Is Not a Function with RxJS

Learn why Angular HTTP GET can throw “map is not a function,” how RxJS operators are loaded, and how to parse JSON safely in legacy Angular.

typescriptjavascriptangularrxjs

Fix Readonly<{}> State Errors in React TypeScript

Learn why React TypeScript reports Property does not exist on type Readonly<{}> and how to type class component state and form events correctly.

typescriptreactjs

Fix TS2304 Cannot Find Name 'require' in TypeScript for Node.js

Learn why TypeScript shows TS2304 for 'require' in Node.js and how to fix it using Node type definitions and correct project setup.

typescriptnode.jsdefinitelytyped

Fix TS2532: Object Is Possibly Undefined in TypeScript Firebase Functions

Learn why TypeScript reports TS2532, how Firebase document snapshots can be undefined, and how to narrow values safely in Cloud Functions.

typescriptfirebasegoogle-cloud-firestoregoogle-cloud-functions

Fix TypeScript TS1149 File Name Differs Only in Casing

Learn why TypeScript TS1149 occurs on Windows, how path casing and duplicate module paths cause it, and how to fix imports and build configuration.

typescriptjavascriptwindowscompiler-errors

Fix TypeScript “Property Does Not Exist on Type” Errors

Learn why TypeScript reports missing properties, how to model dynamic JavaScript safely, and how compiler exit codes affect Visual Studio builds.

typescriptjavascriptvisual-studio-2013

Fix “Would Overwrite Input File” in TypeScript

Learn why TypeScript reports “Cannot write file because it would overwrite input file” and how to separate source, dependencies, and output.

typescriptvisual-studiovisual-studio-2015typescript2.0

Fix “tsc: command not found” When Installing TypeScript on macOS

Learn why macOS cannot find the TypeScript tsc command, how npm global installs and PATH work, and how to verify or fix TypeScript.

typescriptnpmtsc

Fixing React State Updates on Unmounted Components

Learn why React warns about state updates on unmounted components and how to prevent async, throttled, and subscription leaks.

typescriptjavascriptreactjslodash

Page 2 of 9 - 162 questions