any (type)

The TypeScript type that switches off type checking for a value, so anything can be done with it without errors.

Code typed any skips every check, so crashes and bad data reach production unnoticed.

In more detail

any spreads: whatever you read from an any value is also any, so one leak can silently disable checking across many files. JSON.parse returns any, which is a common source. Prefer unknown and narrow it, and let noImplicitAny and a linter catch accidental any.

Related terms

Taught in

References