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`