Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
codeflo
· 6y ago · 0 comments
I personally find that manual return type annotations actually prevent some errors. A common case: I forget the return statement in one branch, and TypeScript is happy to infer something like number|undefined as the return type.
Comments
No comments yet.
Better HN