Dark Hacker News
new
|
best
|
ask
|
show
|
jobs
Avoid TypeScript `as` Assertions
(gist.github.com)
3 points
by
quicksnap
3 years ago
| 2 comments
Avoid TypeScript `as` Assertions | Dark Hacker News
quicksnap
3 years ago
|
next
[−]
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
|
parent
|
next
[−]
The article raises awareness of a pitfall that is easy to fall into, and that will only appear at runtime.