Skip to content

Commit f2e1a22

Browse files
committed
Update types
1 parent 6eb59cb commit f2e1a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http/createRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export async function createRequest<P = any>(
8585
if (!response.ok) {
8686
// Try to parse the response as JSON, if it contains any error messages
8787
// from backend. If not, fake the error message.
88-
let responsePayload: undefined | ApiResponse<P>;
88+
let responsePayload: any;
8989
try {
9090
responsePayload = await response.json();
9191
} catch {

0 commit comments

Comments
 (0)