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

Commit

Permalink
fix: Template literal bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Nov 26, 2020
1 parent 645855d commit f70a9b1
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/default/partials/type.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -80,47 +80,47 @@ if an inner type may result in invalid output without them. For example:
{{#*inline 'mapped'}}
<span class="tsd-signature-symbol">{</span>
{{#ifCond readonlyModifier '===' '+'}}
<span class="tsd-signature-symbol">readonly</span>
<span class="tsd-signature-symbol">readonly </span>
{{else}}
{{#ifCond readonlyModifier '===' '-'}}
<span class="tsd-signature-symbol">-readonly</span>
<span class="tsd-signature-symbol">-readonly </span>
{{/ifCond}}
{{/ifCond}}

<span class="tsd-signature-symbol">[</span>
<span class="tsd-signature-symbol">[ </span>
<span class="tsd-signature-type">{{parameter}}</span>
<span class="tsd-signature-symbol">in</span>
<span class="tsd-signature-symbol"> in </span>

{{#with parameterType}}
{{>type}}
{{/with}}

{{#if nameType}}
<span class="tsd-signature-symbol">as</span>
{{#with nameType}}
<span class="tsd-signature-symbol"> as </span>
{{>type}}
{{/with}}

<span class="tsd-signature-symbol">]</span>
{{#ifCond readonlyModifier '===' '+'}}
<span class="tsd-signature-symbol">?:</span>
<span class="tsd-signature-symbol">?: </span>
{{else}}
{{#ifCond readonlyModifier '===' '-'}}
<span class="tsd-signature-symbol">-?:</span>
<span class="tsd-signature-symbol">-?: </span>
{{else}}
<span class="tsd-signature-symbol">:</span>
<span class="tsd-signature-symbol">: </span>
{{/ifCond}}
{{/ifCond}}

{{#with templateType}}
{{>type}}
{{/with}}

<span class="tsd-signature-symbol">}</span>
<span class="tsd-signature-symbol"> }</span>
{{/inline}}

{{#*inline 'predicate'}}
{{#if asserts}}
<span class="tsd-signature-symbol">asserts</span>
<span class="tsd-signature-symbol">asserts </span>
{{/if}}
<span class="tsd-signature-type">{{name}}</span>
{{#if targetType}}
Expand Down Expand Up @@ -221,13 +221,13 @@ if an inner type may result in invalid output without them. For example:
<span class="tsd-signature-type">{{head}}</span>
{{/if}}
{{#each tail}}
<span class="tsd-signature-type">${</span>
{{#with 0}}
<span class="tsd-signature-symbol">${</span>
{{#with this.[0]}}
{{>type}}
{{/with}}
<span class="tsd-signature-type">}</span>
{{#if 1}}
<span class="tsd-signature-type">{{1}}</span>
<span class="tsd-signature-symbol">}</span>
{{#if this.[1]}}
<span class="tsd-signature-type">{{this.[1]}}</span>
{{/if}}
{{/each}}
<span class="tsd-signature-symbol">`</span>
Expand Down

0 comments on commit f70a9b1

Please sign in to comment.