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

Commit

Permalink
Add reflection of type arguments for types
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-lenz committed Feb 8, 2015
1 parent 65dab5a commit 862bad2
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 7 deletions.
27 changes: 25 additions & 2 deletions bin/default/partials/type.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
{{#if this}}
{{#if reflection}}
<a href="{{relativeURL reflection.url}}" class="tsd-signature-type">{{reflection.name}}</a>{{#if isArray}}<span class="tsd-signature-symbol">[]</span>{{/if}}
{{#compact}}
<a href="{{relativeURL reflection.url}}" class="tsd-signature-type">
{{reflection.name}}
</a>
{{#if isArray}}<span class="tsd-signature-symbol">[]</span>{{/if}}
{{#if typeArguments}}
<span class="tsd-signature-symbol">&lt;</span>
{{#each typeArguments}}
{{#if @index}}<span class="tsd-signature-symbol">, </span>{{/if}}
{{> type}}
{{/each}}
<span class="tsd-signature-symbol">&gt;</span>
{{/if}}
{{/compact}}
{{else}}
{{#if types}}
{{#each types}}
Expand All @@ -16,7 +29,17 @@
{{/each}}
<span class="tsd-signature-symbol">]</span>
{{else}}
<span class="tsd-signature-type">{{this}}</span>
{{#compact}}
<span class="tsd-signature-type">{{this}}</span>
{{#if typeArguments}}
<span class="tsd-signature-symbol">&lt;</span>
{{#each typeArguments}}
{{#if @index}}<span class="tsd-signature-symbol">, </span>{{/if}}
{{> type}}
{{/each}}
<span class="tsd-signature-symbol">&gt;</span>
{{/if}}
{{/compact}}
{{/if}}
{{/if}}
{{/if}}
Expand Down
27 changes: 25 additions & 2 deletions bin/minimal/partials/type.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
{{#if this}}
{{#if reflection}}
<a href="{{relativeURL reflection.url}}" class="tsd-signature-type">{{reflection.name}}</a>{{#if isArray}}<span class="tsd-signature-symbol">[]</span>{{/if}}
{{#compact}}
<a href="{{relativeURL reflection.url}}" class="tsd-signature-type">
{{reflection.name}}
</a>
{{#if isArray}}<span class="tsd-signature-symbol">[]</span>{{/if}}
{{#if typeArguments}}
<span class="tsd-signature-symbol">&lt;</span>
{{#each typeArguments}}
{{#if @index}}<span class="tsd-signature-symbol">, </span>{{/if}}
{{> type}}
{{/each}}
<span class="tsd-signature-symbol">&gt;</span>
{{/if}}
{{/compact}}
{{else}}
{{#if types}}
{{#each types}}
Expand All @@ -16,7 +29,17 @@
{{/each}}
<span class="tsd-signature-symbol">]</span>
{{else}}
<span class="tsd-signature-type">{{this}}</span>
{{#compact}}
<span class="tsd-signature-type">{{this}}</span>
{{#if typeArguments}}
<span class="tsd-signature-symbol">&lt;</span>
{{#each typeArguments}}
{{#if @index}}<span class="tsd-signature-symbol">, </span>{{/if}}
{{> type}}
{{/each}}
<span class="tsd-signature-symbol">&gt;</span>
{{/if}}
{{/compact}}
{{/if}}
{{/if}}
{{/if}}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "typedoc-default-themes",
"description": "Default themes for TypeDoc.",
"version": "0.2.4",
"version": "0.2.5",
"homepage": "http://typedoc.io",
"main": "bin/plugin.js",
"author": {
Expand Down
27 changes: 25 additions & 2 deletions src/default/partials/type.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
{{#if this}}
{{#if reflection}}
<a href="{{relativeURL reflection.url}}" class="tsd-signature-type">{{reflection.name}}</a>{{#if isArray}}<span class="tsd-signature-symbol">[]</span>{{/if}}
{{#compact}}
<a href="{{relativeURL reflection.url}}" class="tsd-signature-type">
{{reflection.name}}
</a>
{{#if isArray}}<span class="tsd-signature-symbol">[]</span>{{/if}}
{{#if typeArguments}}
<span class="tsd-signature-symbol">&lt;</span>
{{#each typeArguments}}
{{#if @index}}<span class="tsd-signature-symbol">, </span>{{/if}}
{{> type}}
{{/each}}
<span class="tsd-signature-symbol">&gt;</span>
{{/if}}
{{/compact}}
{{else}}
{{#if types}}
{{#each types}}
Expand All @@ -16,7 +29,17 @@
{{/each}}
<span class="tsd-signature-symbol">]</span>
{{else}}
<span class="tsd-signature-type">{{this}}</span>
{{#compact}}
<span class="tsd-signature-type">{{this}}</span>
{{#if typeArguments}}
<span class="tsd-signature-symbol">&lt;</span>
{{#each typeArguments}}
{{#if @index}}<span class="tsd-signature-symbol">, </span>{{/if}}
{{> type}}
{{/each}}
<span class="tsd-signature-symbol">&gt;</span>
{{/if}}
{{/compact}}
{{/if}}
{{/if}}
{{/if}}
Expand Down

0 comments on commit 862bad2

Please sign in to comment.