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

Commit

Permalink
Render hyperlink for TypeOperatorType
Browse files Browse the repository at this point in the history
  • Loading branch information
socsieng committed Jan 12, 2020
1 parent eb04120 commit 6ebc6bd
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 22 deletions.
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

0 comments on commit 6ebc6bd

Please sign in to comment.