File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
{{ ~#if @root.useOptions ~}}
2
- {{ #unless isRequired }} ?{{ else if default}} ? {{ /unless }}
2
+ {{ #unless isRequired }} ?{{ /unless }}
3
3
{{ ~else ~}}
4
- {{ #unless isRequired }}{{ #unless default }} ? {{ /unless }} {{/unless }}
5
- {{ ~/if ~}}
4
+ {{ #unless isRequired }} ? {{ /unless }}
5
+ {{ ~/if ~}}
Original file line number Diff line number Diff line change 3
3
{
4
4
api,
5
5
{{ #each parameters }}
6
- {{{ name }}} {{ #if default }} = {{{ default }}} {{ /if }} ,
6
+ {{{ name }}} {{ #if default }}{{ #if isRequired }} = {{{ default }}} {{ /if }}{{ /if }} ,
7
7
{{ /each }}
8
8
options = {},
9
9
}: {
@@ -20,8 +20,7 @@ options: any,
20
20
21
21
api: BaseAPI,
22
22
{{ #each parameters }}
23
- {{{ name }}}{{> isRequired }} : {{> type }} {{ #if default }} = {{{ default }}} {{ /if }} ,
24
- {{ /each }}
23
+ {{{ name }}}{{> isRequired }} : {{> type }} {{ #if isRequired }} = {{{ default }}} {{ /if }}{{ /if }} ,{{ /each }}
25
24
options: any = {},
26
25
{{ /if }}
27
26
{{ else }}
You can’t perform that action at this time.
0 commit comments