Handle function signatures better
This commit is contained in:
parent
3b475fd478
commit
90fb7230c8
3 changed files with 51 additions and 2 deletions
|
@ -48,6 +48,8 @@
|
|||
|
||||
{{/each}}
|
||||
|
||||
{{> member.sources}}
|
||||
|
||||
{{/if}}
|
||||
|
||||
{{#if type.declaration.children}}
|
||||
|
@ -90,7 +92,7 @@
|
|||
|
||||
{{#when this this.kindString 'eq' 'Enumeration'}}
|
||||
|
||||
{{#with this.parent.children}}
|
||||
{{#with this.children}}
|
||||
|
||||
{{{typeDeclarationMembers}}}
|
||||
|
||||
|
|
|
@ -8,16 +8,39 @@
|
|||
|
||||
{{/unless}}
|
||||
|
||||
{{#if signatures}}
|
||||
|
||||
{{#each signatures}}
|
||||
|
||||
{{> member.signature showSources=true }}
|
||||
{{> member.signature showSources=false }}
|
||||
|
||||
{{/each}}
|
||||
|
||||
{{> member.sources}}
|
||||
|
||||
{{else}}
|
||||
|
||||
{{#if hasGetterOrSetter}}
|
||||
|
||||
|
||||
{{> member.getterSetter}}
|
||||
|
||||
{{else}}
|
||||
|
||||
{{#ifIsReference}}
|
||||
|
||||
{{referenceMember}}
|
||||
|
||||
{{else}}
|
||||
|
||||
{{> member.declaration}}
|
||||
|
||||
{{/ifIsReference}}
|
||||
|
||||
{{/if}}
|
||||
|
||||
{{/if}}
|
||||
|
||||
{{#unless @last}}
|
||||
{{#unless hasOwnDocument}}
|
||||
___
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
{{#if comment}}
|
||||
|
||||
{{{signatureTitle accessor}}}
|
||||
|
||||
{{> comment}}
|
||||
|
@ -101,3 +103,25 @@
|
|||
{{> member.sources}}
|
||||
|
||||
{{/if}}
|
||||
|
||||
{{#if @first}}
|
||||
|
||||
{{#unless @last}}
|
||||
|
||||
#### Other signatures
|
||||
|
||||
{{/unless}}
|
||||
|
||||
{{/if}}
|
||||
|
||||
{{else}}
|
||||
|
||||
{{{signatureTitle accessor}}}
|
||||
|
||||
{{#with parameters}}
|
||||
|
||||
{{{parameterTable}}}
|
||||
|
||||
{{/with}}
|
||||
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in a new issue