Handle function signatures better

This commit is contained in:
Anthony Lawn 2023-04-14 00:31:51 -05:00
parent 3b475fd478
commit 90fb7230c8
3 changed files with 51 additions and 2 deletions

View file

@ -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}}}

View file

@ -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}}
___

View file

@ -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}}