File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,14 @@ const endpoints = makeApi([
8282
8383export const {{ options.apiClientName }} = new Zodios({{ #if options.baseUrl }} "{{ options.baseUrl }} ", {{ /if }} endpoints);
8484
85+ {{ #if options.apiClientConstructorName }}
8586function createApiClient(baseUrl: string, options?: ZodiosOptions) {
8687 return new Zodios(baseUrl, endpoints, options);
8788}
8889
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 }}
You can’t perform that action at this time.
0 commit comments