build(aio): render default value for optional parameters (#22435)
Closes #22134 PR Close #22435
This commit is contained in:

committed by
Alex Eagle

parent
1ea41d48d3
commit
5a32d7e36f
@ -20,7 +20,7 @@
|
||||
<td class="param-name"><a id="{$ parameter.anchor $}"></a>{$ parameter.name $}</td>
|
||||
<td class="param-description">
|
||||
{% marked %}
|
||||
{% if parameter.isOptional %}Optional.{% endif %}
|
||||
{% if parameter.isOptional or parameter.defaultValue !== undefined %}Optional. Default is `{$ parameter.defaultValue === undefined and 'undefined' or parameter.defaultValue $}`.{% endif %}
|
||||
|
||||
{% if parameter.description | trim %}{$ parameter.description $}
|
||||
{% elseif parameter.type %}<code>{$ parameter.type $}</code>
|
||||
|
Reference in New Issue
Block a user