Loading...
How do I properly type a generic API response handler in TypeScript?
asked 2 months ago
0
32
I'm building a generic function to handle API responses but I'm struggling with the TypeScript types. The error says 'Type Promise<any> is not assignable to type T'.
0 Answers
No Answers Found
The answer board is empty. Maybe it’s waiting for your brilliant answer to get things rolling!
1