Skip to content

Commit

Permalink
anyOfが使われていた場合にimport * as Types ...が記入されないバグの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
redshoga committed Feb 4, 2021
1 parent 20474a0 commit 96955d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buildV3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 96955d8

Please sign in to comment.