From 6c9f9cdb6965a08617b9d331991b23a156b7d090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=23=E4=BA=91=E6=B7=A1=E7=84=B6?= Date: Fri, 19 Jul 2024 22:57:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(printer):=20=E6=B7=BB=E5=8A=A0=E6=96=B0?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E7=B1=BB=E5=9E=8B=E4=BB=A5=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E6=9B=B4=E4=B8=B0=E5=AF=8C=E7=9A=84=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/printer/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/printer/index.ts b/src/printer/index.ts index 96f63d6..50a5dce 100644 --- a/src/printer/index.ts +++ b/src/printer/index.ts @@ -111,14 +111,17 @@ export class Printer { return [ // + '/* eslint-disable @typescript-eslint/ban-ts-comment */', + '/* eslint-disable @typescript-eslint/no-explicit-any */', + '', axiosNamedImport ? // 具名导入 `import {${axiosImportName}} from "${importPath}";` : // 默认导入 `import ${axiosImportName} from "${importPath}";`, `import type {${axiosRequestConfigTypeName}, ${axiosResponseTypeName}} from "${importPath}";`, + `import type {OneOf, AllOf, AnyOf, AnyObject, AnyArray} from "${pkgName}/client";`, `import {resolveURL} from "${pkgName}/client";`, - `import type {OneOf} from "${pkgName}/client";`, '', `const BASE_URL=${JSON.stringify(BASE_URL)};`, ].join('\n');