r/reactjs •

[deleted by user]

[deleted] — view deleted post

0 Upvotes

255 comments sorted by

View all comments

Show parent comment

1

u/Awnry_Abe Sep 16 '20

I use a validator (Joi) on inputs, and type the shape of inputs and outputs in a shared yarn workspace module that is used by consumers of the API as well as the API itself. Double-overkill, but you never know who is gonna write an integration against your API one day.