Re:Postgres Audit Tables Saved Us from Taking Down Production
by jackweirdy on Saturday August 12, 2023 @02:51PM
(#37103090)
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
[ Parent
| on HN ]
Re:Postgres Audit Tables Saved Us from Taking Down Production
by koolba on Saturday August 12, 2023 @06:46PM
(#37104909)
Or worse if you blindly deserialize JSON and cast it as whatever you want it to be without validation…
Re:Postgres Audit Tables Saved Us from Taking Down Production
by ianlevesque on Saturday August 12, 2023 @08:02PM
(#37105302)
e.g. the norm for typescript use.