TypeScript
TypeScript reported a value that is declared but never read
TypeScript found a local variable, import, or parameter that is declared but not actually used under the current compiler settings.
TypeScript
TypeScript found a local variable, import, or parameter that is declared but not actually used under the current compiler settings.
Observed message
error TS6133: 'X' is declared but its value is never read.
Why it happens
How to fix it
Official reference
TypeScript TSConfig: noUnusedLocalsRelated errors
Explore more