Avoid TypeScript `as` Assertions
gist.github.com
Avoid TypeScript `as` Assertions
1–3 of 3 posts
Re: Avoid TypeScript `as` Assertions
#2Author 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!
Re: Avoid TypeScript `as` Assertions
#3Author 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!
The article raises awareness of a pitfall that is easy to fall into, and that will only appear at runtime.