Typing a REST client
A payment or shipping API hands you a response with forty fields and three levels of nesting. Paste it once and each nested object becomes its own exported interface, so your fetch wrapper is typed before you write the call.
"address": { "city": "Ahmedabad" }
address: Address;


