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

Commit 6ebc6bd

Browse files
committed
Render hyperlink for TypeOperatorType
1 parent eb04120 commit 6ebc6bd

File tree

3 files changed

+28
-22
lines changed

3 files changed

+28
-22
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "typedoc-default-themes",
33
"description": "Default themes for TypeDoc.",
4-
"version": "0.6.3",
4+
"version": "0.6.4",
55
"homepage": "https://typedoc.org/",
66
"main": "bin/plugin.js",
77
"files": [

src/default/partials/type.hbs

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -64,28 +64,34 @@
6464
{{/if}}
6565
{{/compact}}
6666
{{else}}
67-
{{#compact}}
68-
<span class="tsd-signature-type">
69-
{{#if name}}
70-
{{name}}
71-
{{else if value}}
72-
"{{value}}"
73-
{{else}}
74-
{{this}}
75-
{{/if}}
76-
</span>
77-
{{#if typeArguments}}
78-
<span class="tsd-signature-symbol">&lt;</span>
67+
{{#if operator}}
68+
{{#compact}}
69+
<span class="tsd-signature-type">{{operator}}&nbsp;{{#with target}}{{>type}}{{/with}}</span>
70+
{{/compact}}
71+
{{else}}
72+
{{#compact}}
73+
<span class="tsd-signature-type">
74+
{{#if name}}
75+
{{name}}
76+
{{else if value}}
77+
"{{value}}"
78+
{{else}}
79+
{{this}}
80+
{{/if}}
81+
</span>
82+
{{#if typeArguments}}
83+
<span class="tsd-signature-symbol">&lt;</span>
7984

80-
{{#each typeArguments}}
81-
{{#if @index}}
82-
<span class="tsd-signature-symbol">, </span>
83-
{{/if}}{{> type}}
84-
{{/each}}
85+
{{#each typeArguments}}
86+
{{#if @index}}
87+
<span class="tsd-signature-symbol">, </span>
88+
{{/if}}{{> type}}
89+
{{/each}}
8590

86-
<span class="tsd-signature-symbol">&gt;</span>
87-
{{/if}}
88-
{{/compact}}
91+
<span class="tsd-signature-symbol">&gt;</span>
92+
{{/if}}
93+
{{/compact}}
94+
{{/if}}
8995
{{/ifCond}}
9096
{{/if}}
9197
{{/if}}

0 commit comments

Comments
 (0)