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

Commit

Permalink
feat: Support for optional types
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Jan 9, 2021
1 parent 210a189 commit 8eacf7b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/default/partials/type.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ if an inner type may result in invalid output without them. For example:
<span class="tsd-signature-symbol"> }</span>
{{/inline}}

{{#*inline 'optional'}}
{{#with elementType}}
{{> type}}
{{/with}}
<span class="tsd-signature-symbol">?</span>
{{/inline}}

{{#*inline 'predicate'}}
{{#if asserts}}
<span class="tsd-signature-symbol">asserts </span>
Expand Down

0 comments on commit 8eacf7b

Please sign in to comment.