We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba30679 commit 9e2f33bCopy full SHA for 9e2f33b
modules/swagger-codegen/src/main/resources/Javascript-Flowtyped/api.mustache
@@ -240,7 +240,8 @@ export type {{classname}}Type = { {{#operation}}
240
* {{{description}}}{{/description}}
241
* @export
242
*/
243
-export const {{classname}} = function(configuration?: Configuration, fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH): {{classname}}Type {
+export const {{classname}} = function(configuration?: Configuration, fetch: FetchAPI = portableFetch): {{classname}}Type {
244
+ const basePath: string = (configuration && configuration.basePath) || BASE_PATH;
245
return {
246
{{#operation}}
247
/**
0 commit comments