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}} {{/each}}
{{> member.sources}}
{{/if}} {{/if}}
{{#if type.declaration.children}} {{#if type.declaration.children}}
@ -90,7 +92,7 @@
{{#when this this.kindString 'eq' 'Enumeration'}} {{#when this this.kindString 'eq' 'Enumeration'}}
{{#with this.parent.children}} {{#with this.children}}
{{{typeDeclarationMembers}}} {{{typeDeclarationMembers}}}

View file

@ -8,16 +8,39 @@
{{/unless}} {{/unless}}
{{#if signatures}}
{{#each signatures}} {{#each signatures}}
{{> member.signature showSources=true }} {{> member.signature showSources=false }}
{{/each}} {{/each}}
{{> member.sources}}
{{else}}
{{#if hasGetterOrSetter}}
{{> member.getterSetter}} {{> member.getterSetter}}
{{else}}
{{#ifIsReference}}
{{referenceMember}}
{{else}}
{{> member.declaration}} {{> member.declaration}}
{{/ifIsReference}}
{{/if}}
{{/if}}
{{#unless @last}} {{#unless @last}}
{{#unless hasOwnDocument}} {{#unless hasOwnDocument}}
___ ___

View file

@ -1,3 +1,5 @@
{{#if comment}}
{{{signatureTitle accessor}}} {{{signatureTitle accessor}}}
{{> comment}} {{> comment}}
@ -101,3 +103,25 @@
{{> member.sources}} {{> member.sources}}
{{/if}} {{/if}}
{{#if @first}}
{{#unless @last}}
#### Other signatures
{{/unless}}
{{/if}}
{{else}}
{{{signatureTitle accessor}}}
{{#with parameters}}
{{{parameterTable}}}
{{/with}}
{{/if}}