We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a886fe1 commit 35545adCopy full SHA for 35545ad
lib/src/templates/default.hbs
@@ -82,8 +82,14 @@ const endpoints = makeApi([
82
83
export const {{options.apiClientName}} = new Zodios({{#if options.baseUrl}}"{{options.baseUrl}}", {{/if}}endpoints);
84
85
+{{#if options.apiClientConstructorName}}
86
function createApiClient(baseUrl: string, options?: ZodiosOptions) {
87
return new Zodios(baseUrl, endpoints, options);
88
}
89
-export { createApiClient as {{#if options.apiClientConstructorName}}{{options.apiClientConstructorName}}{{else}}createApiClient{{/if}} };
90
+export { createApiClient as {{options.apiClientConstructorName}} };
91
+{{else}}
92
+export function createApiClient(baseUrl: string, options?: ZodiosOptions) {
93
+ return new Zodios(baseUrl, endpoints, options);
94
+}
95
+{{/if}}
0 commit comments