4 ms·
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
by jackweirdy 3y ago
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
- koolba 3y agoOr worse if you blindly deserialize JSON and cast it as whatever you want it to be without validation…
- ianlevesque 3y agoe.g. the norm for typescript use.