Skip to content
JS
Errors

TypeScript errors

TSxxxx compiler errors.

1,407 entries0 written pages
Showing 501 to 550 of 1,407Source: TypeScript diagnosticMessages.json
CodeError
TS2384Overload signatures must all be ambient or non-ambient.
TS2385Overload signatures must all be public, private or protected.
TS2386Overload signatures must all be optional or required.
TS2387Function overload must be static.
TS2388Function overload must not be static.
TS2389Function implementation name must be '{0}'.
TS2390Constructor implementation is missing.
TS2391Function implementation is missing or not immediately following the declaration.
TS2392Multiple constructor implementations are not allowed.
TS2393Duplicate function implementation.
TS2394This overload signature is not compatible with its implementation signature.
TS2395Individual declarations in merged declaration '{0}' must be all exported or all local.
TS2396Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.
TS2397Declaration name conflicts with built-in global identifier '{0}'.
TS2398'constructor' cannot be used as a parameter property name.
TS2399Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference.
TS2400Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference.
TS2401A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter...
TS2402Expression resolves to '_super' that compiler uses to capture base class reference.
TS2403Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'.
TS2404The left-hand side of a 'for...in' statement cannot use a type annotation.
TS2405The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.
TS2406The left-hand side of a 'for...in' statement must be a variable or a property access.
TS2407The 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}'.
TS2408Setters cannot return a value.
TS2409Return type of constructor signature must be assignable to the instance type of the class.
TS2410The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.
TS2411Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'.
TS2412Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target.
TS2413'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'.
TS2414Class name cannot be '{0}'.
TS2415Class '{0}' incorrectly extends base class '{1}'.
TS2416Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'.
TS2417Class static side '{0}' incorrectly extends base class static side '{1}'.
TS2418Type of computed property's value is '{0}', which is not assignable to type '{1}'.
TS2419Types of construct signatures are incompatible.
TS2420Class '{0}' incorrectly implements interface '{1}'.
TS2422A class can only implement an object type or intersection of object types with statically known members.
TS2423Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor.
TS2425Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function.
TS2426Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function.
TS2427Interface name cannot be '{0}'.
TS2428All declarations of '{0}' must have identical type parameters.
TS2430Interface '{0}' incorrectly extends interface '{1}'.
TS2431Enum name cannot be '{0}'.
TS2432In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element.
TS2433A namespace declaration cannot be in a different file from a class or function with which it is merged.
TS2434A namespace declaration cannot be located prior to a class or function with which it is merged.
TS2435Ambient modules cannot be nested in other modules or namespaces.
TS2436Ambient module declaration cannot specify relative module name.

Other families: JavaScript, Node.js, npm, React, Next.js, Vite, webpack, Jest