TypeScript · Types and shapes

any

Disables type checking. Treat it as an escape hatch that should not cross module boundaries.

Syntax
value: any

Example

Example
let value: any = "text";
value = 42;
value();

More in this group

Array types enums Function type Interface Literal type never null and undefined Optional property

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course