any (TypeScript)
`any` is a special type that turns off type checking for a value, letting it be anything and do anything. It is an escape hatch — convenient, but it removes the safety TypeScript provides.
TypeScript
When a value is typed `any`, TypeScript stops checking it: you can call missing methods, access undefined properties, and assign it anywhere without complaint. Bugs that TypeScript would normally catch slip through.
Use `any` sparingly. When you have a value of an uncertain type, the safer choice is usually `unknown`, which forces you to check the type before using it.
Examples
TypeScript
let data: any = 5;
data = "now a string";
data.foo.bar(); // no error at compile time