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

Commit 8eacf7b

Browse files
committed
feat: Support for optional types
1 parent 210a189 commit 8eacf7b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/default/partials/type.hbs

+7
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,13 @@ if an inner type may result in invalid output without them. For example:
118118
<span class="tsd-signature-symbol"> }</span>
119119
{{/inline}}
120120

121+
{{#*inline 'optional'}}
122+
{{#with elementType}}
123+
{{> type}}
124+
{{/with}}
125+
<span class="tsd-signature-symbol">?</span>
126+
{{/inline}}
127+
121128
{{#*inline 'predicate'}}
122129
{{#if asserts}}
123130
<span class="tsd-signature-symbol">asserts </span>

0 commit comments

Comments
 (0)