Skip to content
JS
Errors

TypeScript errors

TSxxxx compiler errors.

1,407 entries0 written pages
Showing 1,201 to 1,250 of 1,407Source: TypeScript diagnosticMessages.json
CodeError
TS7027Unreachable code detected.
TS7028Unused label.
TS7029Fallthrough case in switch.
TS7030Not all code paths return a value.
TS7031Binding element '{0}' implicitly has an '{1}' type.
TS7032Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation.
TS7033Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation.
TS7034Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined.
TS7035Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`
TS7036Dynamic import's specifier must be of type 'string', but here has type '{0}'.
TS7039Mapped object type implicitly has an 'any' template type.
TS7040If the '{0}' package actually exposes this module, consider sending a pull request to amend...
TS7041The containing arrow function captures the global value of 'this'.
TS7042Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used.
TS7043Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage.
TS7044Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage.
TS7045Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage.
TS7046Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage.
TS7047Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage.
TS7048Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage.
TS7049Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage.
TS7050'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage.
TS7051Parameter has a name but no type. Did you mean '{0}: {1}'?
TS7052Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?
TS7053Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'.
TS7054No index signature with a parameter of type '{0}' was found on type '{1}'.
TS7055'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type.
TS7056The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.
TS7057'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation.
TS7058If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`
TS7059This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.
TS7060This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint.
TS7061A mapped type may not declare properties or methods.
TS7080Declaration emit elides private members, but '{0}' refers to a private member. Write an explicit type here.
TS8000You cannot rename this element.
TS8001You cannot rename elements that are defined in the standard TypeScript library.
TS8002'import ... =' can only be used in TypeScript files.
TS8003'export =' can only be used in TypeScript files.
TS8004Type parameter declarations can only be used in TypeScript files.
TS8005'implements' clauses can only be used in TypeScript files.
TS8006'{0}' declarations can only be used in TypeScript files.
TS8008Type aliases can only be used in TypeScript files.
TS8009The '{0}' modifier can only be used in TypeScript files.
TS8010Type annotations can only be used in TypeScript files.
TS8011Type arguments can only be used in TypeScript files.
TS8012Parameter modifiers can only be used in TypeScript files.
TS8013Non-null assertions can only be used in TypeScript files.
TS8016Type assertion expressions can only be used in TypeScript files.
TS8017Signature declarations can only be used in TypeScript files.
TS8020JSDoc types can only be used inside documentation comments.

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