Skip to content

Commit

Permalink
Update type-assertion.md
Browse files Browse the repository at this point in the history
  • Loading branch information
basarat committed Oct 12, 2021
1 parent 8d6787e commit 120b111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/types/type-assertion.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ Basically, the assertion from type `S` to `T` succeeds if either `S` is a subtyp
Both are *equally unsafe* as far as TypeScript is concerned. Use what makes you happy. Considerations:

* Linters prefer `unknown` (with `no-explicit-any` rule)
* `any` is less words to type than `unknown`
* `any` is less characters to type than `unknown`

0 comments on commit 120b111

Please sign in to comment.