Skip to content

Commit 2364378

Browse files
committed
feat: axiosImportName 选项默认值调整为 ""
1 parent 364c66f commit 2364378

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/printer/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export class Printer {
187187

188188
private _printImports() {
189189
const {
190-
axiosImportName = AXIOS_IMPORT_NAME,
190+
axiosImportName = '',
191191
axiosImportFile = AXIOS_IMPORT_FILE,
192192
axiosTypeImportFile = AXIOS_TYPE_IMPORT_FILE,
193193
axiosRequestConfigTypeName = AXIOS_QUEST_CONFIG_TYPE_NAME,

src/printer/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export type OperationIdNormalize = (context: OperationContext) => string;
4646
export interface PrinterOptions {
4747
/**
4848
* 导入名称,为空字符串时默认导入
49-
* @default axios
49+
* @default ""
5050
* @example
5151
* // 具名导入
5252
* import { axios } from 'axios';

0 commit comments

Comments
 (0)