Re:Using TypeScript with React
by a_wild_dandan on Thursday August 22, 2019 @10:26AM
(#20768400)
Also, if you're working with an untyped APIs, define the types you're using. It doesn't have to be complete or perfect. But having that formal contract will save you time and make explicit your assumptions. In the best case, you can contribute those types to the API to everyone's benefit.
[ Parent
| on HN ]
There are no comments on this comment yet.