Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jackweirdy
· 3y ago · 0 comments
If a property is a string in your typescript interface but a number in your external service (api, DB, whatever) the typescript compiler would not know
Comments
[–]
koolba
3y ago
Or worse if you blindly deserialize JSON and cast it as whatever you
want
it to be without validation…
[–]
ianlevesque
3y ago
e.g. the norm for typescript use.