Skip to content
This repository was archived by the owner on Aug 14, 2021. It is now read-only.

Commit aeddd5c

Browse files
committed
feat: Support for query types
1 parent d32a30c commit aeddd5c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/default/partials/type.hbs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ if an inner type may result in invalid output without them. For example:
8686
{{/if}}
8787
{{/inline}}
8888

89+
{{#*inline 'query'}}
90+
<span class="tsd-signature-symbol">typeof </span>
91+
{{#with queryType}}
92+
{{> type}}
93+
{{/with}}
94+
{{/inline}}
95+
8996
{{#*inline 'reference'}}
9097
{{#if reflection}}
9198
<a href="{{relativeURL reflection.url}}" class="tsd-signature-type">
@@ -126,7 +133,7 @@ if an inner type may result in invalid output without them. For example:
126133
{{/with}}
127134
{{/each}}
128135
<span class="tsd-signature-symbol"> }</span>
129-
{{else}}
136+
{{else if declaration.signatures}}
130137
{{#if (lookup declaration.signatures 1) }} {{! more than one signature}}
131138
<span class="tsd-signature-symbol">{ </span>
132139
{{#each declaration.signatures}}
@@ -147,6 +154,8 @@ if an inner type may result in invalid output without them. For example:
147154
<span class="tsd-signature-symbol">)</span>
148155
{{/if}}
149156
{{/if}}
157+
{{else}}
158+
<span class="tsd-signature-symbol">{}</span>
150159
{{/if}}
151160
{{/inline}}
152161

0 commit comments

Comments
 (0)