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([
82
82
83
83
export const {{ options.apiClientName }} = new Zodios({{ #if options.baseUrl }} "{{ options.baseUrl }} ", {{ /if }} endpoints);
84
84
85
+ {{ #if options.apiClientConstructorName }}
85
86
function createApiClient(baseUrl: string, options?: ZodiosOptions) {
86
87
return new Zodios(baseUrl, endpoints, options);
87
88
}
88
89
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