Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cryptica
· 7y ago · 0 comments
This can happen if handling data from a remote client. Type checking does not happen at runtime so you still need to do your own schema validation even with TypeScript. So IMO it adds almost no value.
Comments
[–]
jimmyspice
7y ago
in which case your API layer should validate the data at runtime so that it only actually returns type T as it claims. then you are back to soundness