Skip to content
JS
Errors

TypeScript errors

TSxxxx compiler errors.

1,407 entries0 written pages
Showing 1,251 to 1,300 of 1,407Source: TypeScript diagnosticMessages.json
CodeError
TS8021JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags.
TS8022JSDoc '@{0}' is not attached to a class.
TS8023JSDoc '@{0} {1}' does not match the 'extends {2}' clause.
TS8024JSDoc '@param' tag has name '{0}', but there is no parameter with that name.
TS8025Class declarations cannot have more than one '@augments' or '@extends' tag.
TS8026Expected {0} type arguments; provide these with an '@extends' tag.
TS8027Expected {0}-{1} type arguments; provide these with an '@extends' tag.
TS8028JSDoc '...' may only appear in the last parameter of a signature.
TS8029JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type.
TS8030A JSDoc '@type' tag on a function must have a signature with the correct number of arguments.
TS8031You cannot rename a module via a global import.
TS8032Qualified name '{0}' is not allowed without a leading '@param {object} {1}'.
TS8033A JSDoc '@typedef' comment may not contain multiple '@type' tags.
TS8034The tag was first specified here.
TS8035You cannot rename elements that are defined in a 'node_modules' folder.
TS8036You cannot rename elements that are defined in another 'node_modules' folder.
TS8037Type satisfaction expressions can only be used in TypeScript files.
TS8038Decorators may not appear after 'export' or 'export default' if they also appear before 'export'.
TS8039A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag
TS8040File rename is not supported by the editor
TS9005Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit.
TS9006Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration...
TS9007Function must have an explicit return type annotation with --isolatedDeclarations.
TS9008Method must have an explicit return type annotation with --isolatedDeclarations.
TS9009At least one accessor must have an explicit type annotation with --isolatedDeclarations.
TS9010Variable must have an explicit type annotation with --isolatedDeclarations.
TS9011Parameter must have an explicit type annotation with --isolatedDeclarations.
TS9012Property must have an explicit type annotation with --isolatedDeclarations.
TS9013Expression type can't be inferred with --isolatedDeclarations.
TS9014Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.
TS9015Objects that contain spread assignments can't be inferred with --isolatedDeclarations.
TS9016Objects that contain shorthand properties can't be inferred with --isolatedDeclarations.
TS9017Only const arrays can be inferred with --isolatedDeclarations.
TS9018Arrays with spread elements can't inferred with --isolatedDeclarations.
TS9019Binding elements with initializers can't be exported directly with --isolatedDeclarations.
TS9020Enum member initializers must be computable without references to external symbols with --isolatedDeclarations.
TS9021Extends clause can't contain an expression with --isolatedDeclarations.
TS9022Inference from class expressions is not supported with --isolatedDeclarations.
TS9023Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the...
TS9025Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations.
TS9026Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations.
TS9027Add a type annotation to the variable {0}.
TS9028Add a type annotation to the parameter {0}.
TS9029Add a type annotation to the property {0}.
TS9030Add a return type to the function expression.
TS9031Add a return type to the function declaration.
TS9032Add a return type to the get accessor declaration.
TS9033Add a type to parameter of the set accessor declaration.
TS9034Add a return type to the method
TS9035Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit.

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