build(aio): display types of API const docs correctly (#23850)

Previously these docs always displayed `any` as the type
of the const export. Now the type is computed correctly from
the declared type or initializer of the constant.

PR Close #23850
This commit is contained in:
Pete Bacon Darwin
2018-05-11 10:17:43 +01:00
committed by Matias Niemelä
parent 816bc8af17
commit d889f57ae2
3 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
{% block overview %}
<code-example language="ts" hideCopy="true" class="no-box api-heading">
const {$ doc.name $}: {$ doc.symbolTypeName or 'any' $};
const {$ doc.name $}: {$ (doc.type | escape) or 'any' $};
</code-example>
{% endblock %}