File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -105,10 +105,17 @@ export class {{{name}}}{{{@root.postfix}}} {
105
105
{{ /if }}
106
106
{{ #if parametersHeader }}
107
107
headers: {
108
+ {{ #if @root.useOptions }}
109
+ ...additionalHeaders,
110
+ {{ /if }}
108
111
{{ #each parametersHeader }}
109
112
'{{{ prop }}} ': {{{ name }}} ,
110
113
{{ /each }}
111
114
},
115
+ {{ else }}
116
+ {{ #if @root.useOptions }}
117
+ headers: additionalHeaders,
118
+ {{ /if }}
112
119
{{ /if }}
113
120
{{ #if parametersQuery }}
114
121
query: {
Original file line number Diff line number Diff line change 1
- {{ #if parameters }}
2
- {{ #if @root.useOptions ~}}
1
+ {{ ~#if @root.useOptions }}
3
2
{
4
3
{{ #each parameters }}
5
4
{{{ name }}} {{ #if default }} = {{{ default }}} {{ /if }} ,
6
5
{{ /each }}
6
+ {{ #if @root.useOptions }}
7
+ additionalHeaders = {},
8
+ {{ /if }}
7
9
}: {
8
10
{{ #each parameters }}
9
11
{{ #ifdef description deprecated}}
18
20
{{ /ifdef }}
19
21
{{{ name }}}{{> isRequired }} : {{> type }} ,
20
22
{{ /each }}
21
- }
23
+ additionalHeaders?: Record<string , string>,
24
+ }{{ #unless parameters }} = {}{{ /unless }}
22
25
{{ ~else }}
26
+ {{ #if parameters }}
23
27
24
28
{{ #each parameters }}
25
29
{{{ name }}}{{> isRequired }} : {{> type }} {{ #if default }} = {{{ default }}} {{ /if }} ,
26
30
{{ /each }}
27
31
{{ /if }}
28
- {{ /if }}
32
+ {{ /if }}
You can’t perform that action at this time.
0 commit comments