From 28b92c31a7638ef0fbf1dc62b597de0be3d85c20 Mon Sep 17 00:00:00 2001 From: Carys Mills Date: Wed, 13 Feb 2019 23:15:29 -0500 Subject: [PATCH] Add caution to Any Type documentation (#30412) --- guide/english/typescript/any-type/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guide/english/typescript/any-type/index.md b/guide/english/typescript/any-type/index.md index 9b0714fa6f..b6cc174a36 100644 --- a/guide/english/typescript/any-type/index.md +++ b/guide/english/typescript/any-type/index.md @@ -6,6 +6,8 @@ title: Any Type The Any type instructs Typescript to suspend type checking for the specified variables. Useful when working with dynamic content for which you don't know the type, and for transitioning your codebase from Javascript to Typescript in pieces. You can use Javascript's implicit typing with variables declared with a type of Any. +Although the Any type can be helpful in specific circumstances, it should be used with caution, since it means we opt out of TypeScript's typechecking. + ```typescript let notSure: any = 4; notSure = "maybe a string instead";