TYPE008warningPro

typescript-any

Explicit 'any' type defeats TypeScript's type safety

Applies to: TypeScript

Why this matters

Using 'any' disables TypeScript's type checking for that value, allowing bugs to slip through that the compiler would otherwise catch. It's a common beginner pattern to reach for 'any' when types get complicated, but it undermines the entire benefit of using TypeScript. Use 'unknown' if you truly don't know the type, or define proper interfaces.

Catch it before it ships

pip install stablestack # or: npx stablestackstablestack # scans your project, TYPE008 includedstablestack explain TYPE008

TYPE008 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.

False positive in your codebase? Suppress a single line with # noqa: TYPE008