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

Render hyperlink for TypeOperatorType #91

Merged
merged 1 commit into from Jan 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "typedoc-default-themes",
"description": "Default themes for TypeDoc.",
"version": "0.6.3",
"version": "0.6.4",
"homepage": "https://typedoc.org/",
"main": "bin/plugin.js",
"files": [
Expand Down
46 changes: 26 additions & 20 deletions src/default/partials/type.hbs
Expand Up @@ -64,28 +64,34 @@
{{/if}}
{{/compact}}
{{else}}
{{#compact}}
<span class="tsd-signature-type">
{{#if name}}
{{name}}
{{else if value}}
"{{value}}"
{{else}}
{{this}}
{{/if}}
</span>
{{#if typeArguments}}
<span class="tsd-signature-symbol">&lt;</span>
{{#if operator}}
{{#compact}}
<span class="tsd-signature-type">{{operator}}&nbsp;{{#with target}}{{>type}}{{/with}}</span>
{{/compact}}
{{else}}
{{#compact}}
<span class="tsd-signature-type">
{{#if name}}
{{name}}
{{else if value}}
"{{value}}"
{{else}}
{{this}}
{{/if}}
</span>
{{#if typeArguments}}
<span class="tsd-signature-symbol">&lt;</span>

{{#each typeArguments}}
{{#if @index}}
<span class="tsd-signature-symbol">, </span>
{{/if}}{{> type}}
{{/each}}
{{#each typeArguments}}
{{#if @index}}
<span class="tsd-signature-symbol">, </span>
{{/if}}{{> type}}
{{/each}}

<span class="tsd-signature-symbol">&gt;</span>
{{/if}}
{{/compact}}
<span class="tsd-signature-symbol">&gt;</span>
{{/if}}
{{/compact}}
{{/if}}
{{/ifCond}}
{{/if}}
{{/if}}
Expand Down