|
33 | 33 | {{/hasFormParams}} |
34 | 34 | {{/hasBodyParam}} |
35 | 35 | * |
36 | | - * @returns A promise of type {{{returnType}}}{{^returnType}}void{{/returnType}}. |
| 36 | + * @returns A promise of type {{#returnType}}{{#isArray}}Array<{{returnBaseType}}>{{/isArray}}{{^isArray}}{{{returnType}}}{{/isArray}}{{/returnType}}{{^returnType}}void{{/returnType}}. |
37 | 37 | */ |
38 | 38 | {{nickname}}( |
39 | 39 | options{{^hasBodyParam}}?{{/hasBodyParam}}: RequireParametersUnlessAllAreOptional<{ |
|
77 | 77 | {{/hasFormParams}} |
78 | 78 | {{/hasBodyParam}} |
79 | 79 | }> |
80 | | - ): Promise<{{{returnType}}}{{^returnType}}void{{/returnType}}>; |
| 80 | + ): Promise<{{#returnType}}{{#isArray}}Array<{{returnBaseType}}>{{/isArray}}{{^isArray}}{{{returnType}}}{{/isArray}}{{/returnType}}{{^returnType}}void{{/returnType}}>; |
81 | 81 |
|
82 | 82 | /** |
83 | 83 | * {{{unescapedNotes}}} |
|
111 | 111 | {{/hasBodyParam}} |
112 | 112 | * @param rawResponse - Set to true to return entire Response object instead of DTO. |
113 | 113 | * |
114 | | - * @returns A promise of type Response if rawResponse is true, a promise of type {{{returnType}}}{{^returnType}}void{{/returnType}} otherwise. |
| 114 | + * @returns A promise of type Response if rawResponse is true, a promise of type {{#returnType}}{{#isArray}}Array<{{returnBaseType}}>{{/isArray}}{{^isArray}}{{{returnType}}}{{/isArray}}{{/returnType}}{{^returnType}}void{{/returnType}} otherwise. |
115 | 115 | */ |
116 | 116 | {{nickname}}<T extends boolean>( |
117 | 117 | options{{^hasBodyParam}}?{{/hasBodyParam}}: RequireParametersUnlessAllAreOptional<{ |
|
156 | 156 | {{/hasBodyParam}} |
157 | 157 | }>, |
158 | 158 | rawResponse?: T |
159 | | - ): Promise<T extends true ? Response : {{{returnType}}}{{^returnType}}void{{/returnType}}>; |
| 159 | + ): Promise<T extends true ? Response : {{#returnType}}{{#isArray}}Array<{{returnBaseType}}>{{/isArray}}{{^isArray}}{{{returnType}}}{{/isArray}}{{/returnType}}{{^returnType}}void{{/returnType}}>; |
160 | 160 |
|
161 | 161 | /** |
162 | 162 | * {{{unescapedNotes}}} |
|
190 | 190 | {{/hasBodyParam}} |
191 | 191 | * @param rawResponse - Set to true to return entire Response object instead of DTO. |
192 | 192 | * |
193 | | - * @returns A promise of type Response if rawResponse is true, a promise of type {{{returnType}}}{{^returnType}}void{{/returnType}} otherwise. |
| 193 | + * @returns A promise of type Response if rawResponse is true, a promise of type {{#returnType}}{{#isArray}}Array<{{returnBaseType}}>{{/isArray}}{{^isArray}}{{{returnType}}}{{/isArray}}{{/returnType}}{{^returnType}}void{{/returnType}} otherwise. |
194 | 194 | */ |
195 | 195 | async {{nickname}}( |
196 | 196 | options{{^hasBodyParam}}?{{/hasBodyParam}}: RequireParametersUnlessAllAreOptional<{ |
|
235 | 235 | {{/hasBodyParam}} |
236 | 236 | }>, |
237 | 237 | rawResponse?: boolean |
238 | | - ): Promise<Response | {{{returnType}}}{{^returnType}}void{{/returnType}}> { |
| 238 | + ): Promise<Response | {{#returnType}}{{#isArray}}Array<{{returnBaseType}}>{{/isArray}}{{^isArray}}{{{returnType}}}{{/isArray}}{{/returnType}}{{^returnType}}void{{/returnType}}> { |
239 | 239 | const optionParams = options?.parameters || ({} as Partial<NonNullable<NonNullable<typeof options>["parameters"]>>); |
240 | 240 | const configParams = this.clientConfig.parameters as CommonParameters; |
241 | 241 |
|
|
0 commit comments