OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
20.51k stars 6.27k forks source link

#15985 Change options from any to RawAxiosRequestConfig in typescript-axios #18978

Open MarekBodingerBA opened 1 week ago

MarekBodingerBA commented 1 week ago

Fixes #15985, for some reason all the versions of options have the correct type (RawAxiosRequestConfig) except "factory interface" versions of the functions.

For example, the changed line is from any (in the original): https://github.com/OpenAPITools/openapi-generator/blob/640ef9d9448a4a008af90eca9cc84c8a78ec87ec/samples/client/petstore/typescript-axios/builds/default/api.ts#L739 To RawAxiosRequestConfig (in this pull request): https://github.com/OpenAPITools/openapi-generator/blob/d5d4c058af17b5321000eac057403980c6f56fb3/samples/client/petstore/typescript-axios/builds/default/api.ts#L739 As you can see it calls this method in the next line, where the type is correctly present: https://github.com/OpenAPITools/openapi-generator/blob/d5d4c058af17b5321000eac057403980c6f56fb3/samples/client/petstore/typescript-axios/builds/default/api.ts#L619 Another instance with the correct type: https://github.com/OpenAPITools/openapi-generator/blob/640ef9d9448a4a008af90eca9cc84c8a78ec87ec/samples/client/petstore/typescript-axios/builds/default/api.ts#L836

PR checklist

@TiFu @taxpon @sebastianhaas @kenisteward @Vrolijkx @macjohnny @topce @akehir @petejohansonxo @amakhrov @davidgamero @mkusaka