Pete Bacon Darwin d889f57ae2 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
2018-05-11 16:44:50 -04:00

12 lines
311 B
HTML

{% extends 'export-base.template.html' %}
{% block overview %}
<code-example language="ts" hideCopy="true" class="no-box api-heading">
const {$ doc.name $}: {$ (doc.type | escape) or 'any' $};
</code-example>
{% endblock %}
{% block details %}
{% include "includes/description.html" %}
{% endblock %}