Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[typescript-axios] @ts-ignore possible unused imports #3742

Merged

Conversation

silasdavis
Copy link
Contributor

@silasdavis silasdavis commented Aug 23, 2019

Depending on the template parameters some imports may not get used -
this causes a typescript compiler error that must be manually fixed.

fixes: #3743

Signed-off-by: Silas Davis [email protected]

@silasdavis silasdavis changed the title typescript-axios: @ts-ignore possible unused imports [typescript-axios] @ts-ignore possible unused imports Aug 23, 2019
@silasdavis
Copy link
Contributor Author

Not sure how this pure text change to mustache templates could cause memory leak.

@macjohnny
Copy link
Member

Thanks for your pr
Please re-generate the samples and commit them, see https://github.com/OpenAPITools/openapi-generator/blob/master/.github/PULL_REQUEST_TEMPLATE.md

Depending on the template parameters some imports may not get used -
this causes a typescript compiler error that must be manually fixed.

Signed-off-by: Silas Davis <[email protected]>
@silasdavis silasdavis force-pushed the typescript-axios-unused-imports branch from 9230bd9 to 1101865 Compare August 26, 2019 09:59
@silasdavis
Copy link
Contributor Author

@macjohnny whoops, sorry about that, regenerated and rebased.

also CC Typescript technical committee @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @nicokoenig (2018/09) @topce (2018/10) @akehir (2019/07)

Copy link
Member

@macjohnny macjohnny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@macjohnny macjohnny merged commit c290555 into OpenAPITools:master Aug 26, 2019
@wing328 wing328 added this to the 4.1.2 milestone Sep 10, 2019
@wing328
Copy link
Member

wing328 commented Sep 12, 2019

@silasdavis thanks for the PR, which has been included in the v4.1.2 release: https://twitter.com/oas_generator/status/1172068944355528705

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] typescript-axios sometimes generates unused imports
3 participants