build(aio): render default value for optional parameters (#22435)

Closes #22134

PR Close #22435
This commit is contained in:
Pete Bacon Darwin
2018-02-25 09:21:42 +00:00
committed by Alex Eagle
parent 1ea41d48d3
commit 5a32d7e36f
3 changed files with 5 additions and 5 deletions

View File

@ -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>