From 96955d89e4728bc37696db677b8eb9fc9909935a Mon Sep 17 00:00:00 2001 From: redshoga Date: Thu, 4 Feb 2021 18:25:46 +0900 Subject: [PATCH] =?UTF-8?q?anyOf=E3=81=8C=E4=BD=BF=E3=82=8F=E3=82=8C?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=81=9F=E5=A0=B4=E5=90=88=E3=81=AB`import?= =?UTF-8?q?=20*=20as=20Types=20...`=E3=81=8C=E8=A8=98=E5=85=A5=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=81=AA=E3=81=84=E3=83=90=E3=82=B0=E3=81=AE=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/buildV3.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buildV3.ts b/src/buildV3.ts index bb61d325..eededb1c 100644 --- a/src/buildV3.ts +++ b/src/buildV3.ts @@ -266,7 +266,7 @@ export default (openapi: OpenAPIV3.Document) => { return { file, methods: `/* eslint-disable */\n${ - / Types\./.test(methodsText) + /( |<)Types\./.test(methodsText) ? `import * as Types from '${file.map(() => '').join('../')}@types'\n\n` : '' }export type Methods = ${methodsText}\n`