shortSignature: function (section) { | |
var prefix = ''; | |
if (section.kind === 'class') { | |
prefix = 'new '; | |
} else if (section.kind !== 'function') { | |
return section.name; | |
} | |
return prefix + section.name + formatters.parameters(section, true); | |
}, | |
signature: function (section) { | |
var returns = ''; | |
var prefix = ''; | |
if (section.kind === 'class') { | |
prefix = 'new '; | |
} else if (section.kind !== 'function') { | |
return section.name; | |
} | |
if (section.returns) { | |
returns = ': ' + | |
formatters.type(section.returns[0].type); | |
} | |
return prefix + section.name + formatters.parameters(section) + returns; | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment