We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eb59cb commit f2e1a22Copy full SHA for f2e1a22
src/http/createRequest.ts
@@ -85,7 +85,7 @@ export async function createRequest<P = any>(
85
if (!response.ok) {
86
// Try to parse the response as JSON, if it contains any error messages
87
// from backend. If not, fake the error message.
88
- let responsePayload: undefined | ApiResponse<P>;
+ let responsePayload: any;
89
try {
90
responsePayload = await response.json();
91
} catch {
0 commit comments