Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/documentation/copy/en/handbook-v2/Everyday Types.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ const n: number = obj;

The `any` type is useful when you don't want to write out a long type just to convince TypeScript that a particular line of code is okay.

After all, remember that all the convenience of `any` comes at the cost of losing type safety. Type safety is one of the main motivations for using TypeScript and you should try to avoid using `any` when not necessary.

### `noImplicitAny`

When you don't specify a type, and TypeScript can't infer it from context, the compiler will typically default to `any`.
Expand Down Expand Up @@ -735,3 +737,4 @@ if (firstName === secondName) {
```

You can learn more about them in [Symbols reference page](/docs/handbook/symbols.html).