File tree Expand file tree Collapse file tree 6 files changed +7
-6
lines changed Expand file tree Collapse file tree 6 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import type { ApiRequestOptions } from './ApiRequestOptions';
8
8
import type { ApiResult } from './ApiResult';
9
9
import { CancelablePromise } from './CancelablePromise';
10
10
import type { OnCancel } from './CancelablePromise';
11
- import { OpenAPIConfig } from './OpenAPI';
11
+ import type { OpenAPIConfig } from './OpenAPI';
12
12
13
13
{{> functions/isDefined }}
14
14
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const sendRequest = async (
9
9
): Promise<AxiosResponse <any>> => {
10
10
const source = axios.CancelToken.source();
11
11
12
- const config : AxiosRequestConfig = {
12
+ const requestConfig : AxiosRequestConfig = {
13
13
url,
14
14
headers,
15
15
data: body || formData,
@@ -21,7 +21,7 @@ const sendRequest = async (
21
21
onCancel(() => source.cancel('The user aborted a request.'));
22
22
23
23
try {
24
- return await axios.request(config );
24
+ return await axios.request(requestConfig );
25
25
} catch (error) {
26
26
const axiosError = error as AxiosError;
27
27
if (axiosError.response) {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import type { ApiRequestOptions } from './ApiRequestOptions';
5
5
import type { ApiResult } from './ApiResult';
6
6
import { CancelablePromise } from './CancelablePromise';
7
7
import type { OnCancel } from './CancelablePromise';
8
- import { OpenAPIConfig } from './OpenAPI';
8
+ import type { OpenAPIConfig } from './OpenAPI';
9
9
10
10
{{> functions/isDefined }}
11
11
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import type { ApiRequestOptions } from './ApiRequestOptions';
9
9
import type { ApiResult } from './ApiResult';
10
10
import { CancelablePromise } from './CancelablePromise';
11
11
import type { OnCancel } from './CancelablePromise';
12
- import { OpenAPIConfig } from './OpenAPI';
12
+ import type { OpenAPIConfig } from './OpenAPI';
13
13
14
14
{{> functions/isDefined }}
15
15
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import type { ApiRequestOptions } from './ApiRequestOptions';
5
5
import type { ApiResult } from './ApiResult';
6
6
import { CancelablePromise } from './CancelablePromise';
7
7
import type { OnCancel } from './CancelablePromise';
8
- import { OpenAPIConfig } from './OpenAPI';
8
+ import type { OpenAPIConfig } from './OpenAPI';
9
9
10
10
{{> functions/isDefined }}
11
11
Original file line number Diff line number Diff line change 4
4
export { ApiError } from './core/ApiError';
5
5
export { CancelablePromise, CancelError } from './core/CancelablePromise';
6
6
export { OpenAPI } from './core/OpenAPI';
7
+ export type { OpenAPIConfig } from './core/OpenAPI';
7
8
{{ /if }}
8
9
{{ #if @root.exportModels }}
9
10
{{ #if models }}
You can’t perform that action at this time.
0 commit comments