forked from TypeStrong/typedoc-default-themes
/
member.signature.title.hbs
39 lines (38 loc) · 1.08 KB
/
member.signature.title.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{{#unless hideName}}{{{formatDisplayName wbr name}}}{{/unless}}
{{#if typeParameters}}
<
{{#each typeParameters}}
{{#if @index}}, {{/if}}
{{formatDisplayName name}}
{{/each}}
>
{{/if}}
<span class="tsd-signature-symbol">(</span>
{{#each parameters}}
{{#if @index}}, {{/if}}
{{#if flags.isRest}}<span class="tsd-signature-symbol">...</span>{{/if}}
{{name}}
<span class="tsd-signature-symbol">
{{#if flags.isOptional}}?{{/if}}
{{#if defaultValue}}?{{/if}}
:
</span>
{{#with type}}{{>type}}{{/with}}
{{/each}}
<span class="tsd-signature-symbol">)</span>
{{#if type}}
{{#if arrowStyle}}
<span class="tsd-signature-symbol"> => </span>
{{else}}
<span class="tsd-signature-symbol">: </span>
{{/if}}
{{#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}}