Skip to content

Commit 18738ed

Browse files
committed
Fix formatting of type parameters
Resolves #2882
1 parent c425ac9 commit 18738ed

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/lib/output/themes/default/partials/typeParameters.tsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,23 @@ export function typeParameters(context: DefaultThemeRenderContext, typeParameter
1313
<li>
1414
<span>
1515
{anchorLinkIfPresent(context, item)}
16-
{item.flags.isConst && <span class="tsd-signature-keyword">const</span>}
16+
{item.flags.isConst && (
17+
<>
18+
<span class="tsd-signature-keyword">const</span>
19+
{" "}
20+
</>
21+
)}
1722
{item.varianceModifier && (
18-
<span class="tsd-signature-keyword">{item.varianceModifier}</span>
23+
<>
24+
<span class="tsd-signature-keyword">{item.varianceModifier}</span>
25+
{" "}
26+
</>
1927
)}
2028
<span class="tsd-kind-type-parameter">{item.name}</span>
2129
{!!item.type && (
2230
<>
23-
<span class="tsd-signature-keyword">extends</span>
24-
{context.type(item.type)}
31+
{" "}
32+
<span class="tsd-signature-keyword">extends</span> {context.type(item.type)}
2533
</>
2634
)}
2735
{!!item.default && (

0 commit comments

Comments
 (0)