-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
[TS] Fixes typescript-axios "File custom.d.ts not found" when building consumer TS project #4230
Conversation
@alavkx what is the impact of removing this |
please re-generate all typescript-axios samples with
See https://circleci.com/gh/OpenAPITools/openapi-generator/9747#tests/containers/2 |
Clearly did something wrong 😅
I didn't find any impact, but I also don't understand the purpose of the file in the first place. It is a declaration file with a single module, node's "url" module. I'm assuming that this declaration was created because Forgive my formatter making this diff so big, I can fix it up if we decide to merge this in. |
@nicokoenig do you know the purpose of the |
Is there instructions somewhere for forking openapi-generator and building a binary to use in a fork of the node cli? I understand if this takes a while to get merged in. Unfortunately, the problem is blocking other typescript projects from consuming the client — help with a workaround would be greatly appreciated ❤️ |
@alavk you could also write a small script that will simply delete that file after generating code. |
@alavkx thanks for the PR, which has been included in v4.2.0 release: https://twitter.com/oas_generator/status/1189824932345069569 |
Fixes #4227
PR checklist
./bin/
(or Windows batch scripts under.\bin\windows
) to update Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit, and these must match the expectations made by your contribution. You only need to run./bin/{LANG}-petstore.sh
,./bin/openapi3/{LANG}-petstore.sh
if updating the code or mustache templates for a language ({LANG}
) (e.g. php, ruby, python, etc).master
,4.1.x
,5.0.x
. Default:master
.@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)