diff --git a/src/lib/generate-template.ts b/src/lib/generate-template.ts index 2ed569a..65ed23a 100644 --- a/src/lib/generate-template.ts +++ b/src/lib/generate-template.ts @@ -215,7 +215,7 @@ var ${className} = class extends BaseOpenapiClient { return metas[method] .filter((meta) => meta.tags.includes(ns)) .map((meta) => { - return `${camelCase(meta.key)}(opts) { + return `${camelCase(meta.key)}: (opts) => { return this.request('${meta.uri}', '${method}', opts); },`; });