Promise Decoration: Fetch Ergonomics That Won't Break Your Response
You've typed await response.json() a hundred times too many. One dev's Promise decoration trick delivers client.get('/api/todos').json() without sacrificing native fetch semantics.
⚡ Key Takeaways
Worth sharing?
Get the best Developer Tools stories of the week in your inbox — no noise, no spam.
Originally reported by dev.to