The fetch wrapper I had rewritten in every project
The `api.ts` I had retyped from scratch in every app, written once as a package. Most of the work was deciding what belonged in it: the rules that came before the code, and the reason behind each of the eight options that survived.
13 min read Read