Errors
TypeScript errors
TSxxxx compiler errors.
1,407 entries0 written pages
Showing 501 to 550 of 1,407Source: TypeScript diagnosticMessages.json
| Code | Error | Category | Page |
|---|---|---|---|
| TS2384 | Overload signatures must all be ambient or non-ambient. | Error | Reference |
| TS2385 | Overload signatures must all be public, private or protected. | Error | Reference |
| TS2386 | Overload signatures must all be optional or required. | Error | Reference |
| TS2387 | Function overload must be static. | Error | Reference |
| TS2388 | Function overload must not be static. | Error | Reference |
| TS2389 | Function implementation name must be '{0}'. | Error | Reference |
| TS2390 | Constructor implementation is missing. | Error | Reference |
| TS2391 | Function implementation is missing or not immediately following the declaration. | Error | Reference |
| TS2392 | Multiple constructor implementations are not allowed. | Error | Reference |
| TS2393 | Duplicate function implementation. | Error | Reference |
| TS2394 | This overload signature is not compatible with its implementation signature. | Error | Reference |
| TS2395 | Individual declarations in merged declaration '{0}' must be all exported or all local. | Error | Reference |
| TS2396 | Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters. | Error | Reference |
| TS2397 | Declaration name conflicts with built-in global identifier '{0}'. | Error | Reference |
| TS2398 | 'constructor' cannot be used as a parameter property name. | Error | Reference |
| TS2399 | Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference. | Error | Reference |
| TS2400 | Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference. | Error | Reference |
| TS2401 | A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter... | Error | Reference |
| TS2402 | Expression resolves to '_super' that compiler uses to capture base class reference. | Error | Reference |
| TS2403 | Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'. | Error | Reference |
| TS2404 | The left-hand side of a 'for...in' statement cannot use a type annotation. | Error | Reference |
| TS2405 | The left-hand side of a 'for...in' statement must be of type 'string' or 'any'. | Error | Reference |
| TS2406 | The left-hand side of a 'for...in' statement must be a variable or a property access. | Error | Reference |
| TS2407 | The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'. | Error | Reference |
| TS2408 | Setters cannot return a value. | Error | Reference |
| TS2409 | Return type of constructor signature must be assignable to the instance type of the class. | Error | Reference |
| TS2410 | The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'. | Error | Reference |
| TS2411 | Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'. | Error | Reference |
| TS2412 | Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target. | Error | Reference |
| TS2413 | '{0}' index type '{1}' is not assignable to '{2}' index type '{3}'. | Error | Reference |
| TS2414 | Class name cannot be '{0}'. | Error | Reference |
| TS2415 | Class '{0}' incorrectly extends base class '{1}'. | Error | Reference |
| TS2416 | Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'. | Error | Reference |
| TS2417 | Class static side '{0}' incorrectly extends base class static side '{1}'. | Error | Reference |
| TS2418 | Type of computed property's value is '{0}', which is not assignable to type '{1}'. | Error | Reference |
| TS2419 | Types of construct signatures are incompatible. | Error | Reference |
| TS2420 | Class '{0}' incorrectly implements interface '{1}'. | Error | Reference |
| TS2422 | A class can only implement an object type or intersection of object types with statically known members. | Error | Reference |
| TS2423 | Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor. | Error | Reference |
| TS2425 | Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function. | Error | Reference |
| TS2426 | Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function. | Error | Reference |
| TS2427 | Interface name cannot be '{0}'. | Error | Reference |
| TS2428 | All declarations of '{0}' must have identical type parameters. | Error | Reference |
| TS2430 | Interface '{0}' incorrectly extends interface '{1}'. | Error | Reference |
| TS2431 | Enum name cannot be '{0}'. | Error | Reference |
| TS2432 | In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element. | Error | Reference |
| TS2433 | A namespace declaration cannot be in a different file from a class or function with which it is merged. | Error | Reference |
| TS2434 | A namespace declaration cannot be located prior to a class or function with which it is merged. | Error | Reference |
| TS2435 | Ambient modules cannot be nested in other modules or namespaces. | Error | Reference |
| TS2436 | Ambient module declaration cannot specify relative module name. | Error | Reference |
Other families: JavaScript, Node.js, npm, React, Next.js, Vite, webpack, Jest