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 e364320 commit ea21f34Copy full SHA for ea21f34
plugins/typescript/src/templates/fetcher.ts
@@ -72,6 +72,7 @@ export async function ${camel(prefix)}Fetch<
72
TQueryParams,
73
TPathParams
74
>): Promise<TData> {
75
+ let error: ErrorWrapper<TError>;
76
try {
77
const requestHeaders: HeadersInit = {
78
"Content-Type": "application/json",
@@ -97,7 +98,6 @@ export async function ${camel(prefix)}Fetch<
97
98
}
99
);
100
if (!response.ok) {
- let error: ErrorWrapper<TError>;
101
102
error = await response.json();
103
} catch (e) {
0 commit comments