Skip to content

Commit

Permalink
Workaround for TypeStrong/typedoc#1215 . For a setter, always use voi…
Browse files Browse the repository at this point in the history
…d as return type
  • Loading branch information
PissedCapslock committed Feb 21, 2020
1 parent 556d24c commit fa439d8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/default/partials/member.getterSetter.hbs
Expand Up @@ -13,7 +13,7 @@
<li class="tsd-signature tsd-kind-icon">{{#compact}}
<span class="tsd-signature-symbol">set</span>&nbsp;
{{formatDisplayName ../name}}
{{> member.signature.title hideName=true }}
{{> member.signature.title hideName=true setter=true}}
{{/compact}}</li>
{{/with}}
{{/if}}
Expand Down
13 changes: 10 additions & 3 deletions src/default/partials/member.signature.title.hbs
Expand Up @@ -26,7 +26,14 @@
{{else}}
<span class="tsd-signature-symbol">: </span>
{{/if}}
{{#with type}}
{{>type}}
{{/with}}
{{#if setter}}
{{! Copied from type.hbs. Workaround for https://github.com/TypeStrong/typedoc/issues/1215}}
<span class="tsd-signature-type">void</span>
{{/if}}
{{#else}}
{{#with type}}
{{>type}}
{{/with}}
{{/else}}

{{/if}}

0 comments on commit fa439d8

Please sign in to comment.