You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.2 KiB
42 lines
1.2 KiB
3 years ago
|
{{#unless hideName}}
|
||
|
{{{wbr name}}}
|
||
|
{{else}} {{! This ugliness goes away when we stop naming constructor signatures "new X"}}
|
||
|
{{#ifCond kindString "===" "Constructor signature"}}
|
||
|
{{#if flags.isAbstract}}
|
||
|
<span class="tsd-signature-symbol">abstract </span>
|
||
|
{{/if}}
|
||
|
<span class="tsd-signature-symbol">new </span>
|
||
|
{{/ifCond}}
|
||
|
{{/unless}}
|
||
|
{{#if typeParameters}}
|
||
|
<
|
||
|
{{#each typeParameters}}
|
||
|
{{#if @index}}, {{/if}}
|
||
|
{{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}}
|
||
|
{{#with type}}
|
||
|
{{>type}}
|
||
|
{{/with}}
|
||
|
{{/if}}
|