mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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
11 lines
311 B
HTML
11 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 %}
|