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

Commit 1087181

Browse files
committed
feat: Support for named tuples
1 parent 068d29e commit 1087181

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/default/partials/type.hbs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,18 @@ if an inner type may result in invalid output without them. For example:
204204
<span class="tsd-signature-type">{{name}}</span>
205205
{{/inline}}
206206

207+
{{#*inline 'named-tuple-member'}}
208+
{{name}}
209+
{{#if isOptional}}
210+
<span class="tsd-signature-symbol">?: </span>
211+
{{else}}
212+
<span class="tsd-signature-symbol">: </span>
213+
{{/if}}
214+
{{#with element}}
215+
{{> type}}
216+
{{/with}}
217+
{{/inline}}
218+
207219
{{#if this}}
208220
{{> (lookup . 'type') }}
209221
{{else}}

0 commit comments

Comments
 (0)