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:

committed by
Matias Niemelä

parent
752b83ac81
commit
2a528fcb15
@ -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 %}
|
||||
|
||||
|
Reference in New Issue
Block a user