Settings

Theme

Avoid TypeScript `as` Assertions

gist.github.com

3 points by quicksnap 3 years ago · 2 comments

Reader

quicksnapOP 3 years ago

Author here. I am sure there are many articles about this already. I just wrote this nugget to be as quick and to the point on the issue, since it's a peeve of mine.

Hope it helps someone!

  • christopherbalz 3 years ago

    The article raises awareness of a pitfall that is easy to fall into, and that will only appear at runtime.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection