Skip to content

Commit 0f600c8

Browse files
fairkingManweill
authored andcommitted
Fixed "AxiosInstance" is not exported by "node_modules/axios/index.js", imported by "src/api/member_area.ts".
1 parent 9ae8cdb commit 0f600c8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/templates/serviceHeader.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export function serviceHeader(options: ISwaggerOptions) {
1111
return `/** Generate by swagger-axios-codegen */
1212
/* eslint-disable */
1313
// @ts-nocheck
14-
import axiosStatic, { type AxiosInstance, type AxiosRequestConfig } from 'axios';
14+
import axiosStatic from 'axios';
15+
import type { AxiosInstance, AxiosRequestConfig } from 'axios';
1516
1617
${classTransformerImport}
1718
@@ -63,7 +64,8 @@ export function customerServiceHeader(options: ISwaggerOptions) {
6364
return `/** Generate by swagger-axios-codegen */
6465
// @ts-nocheck
6566
/* eslint-disable */
66-
import axiosStatic, { type AxiosInstance, type AxiosRequestConfig } from 'axios';
67+
import axiosStatic from 'axios';
68+
import type { AxiosInstance, AxiosRequestConfig } from 'axios';
6769
6870
export interface IRequestOptions extends AxiosRequestConfig {
6971
/**

0 commit comments

Comments
 (0)