top | item 32515571

Avoid TypeScript `as` Assertions

3 points| quicksnap | 3 years ago |gist.github.com

2 comments

order

quicksnap|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.