Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
Avoid TypeScript `as` Assertions | Better HN
Avoid TypeScript `as` Assertions
(opens in new tab)
(gist.github.com)
3 points
quicksnap
3y ago
2 comments
Share
2 comments
default
newest
oldest
quicksnap
OP
3y 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
3y ago
The article raises awareness of a pitfall that is easy to fall into, and that will only appear at runtime.
j
/
k
navigate · click thread line to collapse