How to Use TypeScript to Accumulate Types: Typing ALL possible fetch() Results
When I started re-writing (with my team) our application in TypeScript and Svelte (it was in JavaScript and React which we all hate), I was faced with a problem:
How can I safely type all possible bodies of an HTTP response?
Does this ring a bell t...
webjose.hashnode.dev8 min read