in docs_template/publish.js [51:80]
function needsSignature({kind, type, meta}) {
let needsSig = false;
// function and class definitions always get a signature
if (kind === 'function' || kind === 'class') {
needsSig = true;
}
// typedefs that contain functions get a signature, too
else if (kind === 'typedef' && type && type.names && type.names.length) {
for (let i = 0, l = type.names.length; i < l; i++) {
if (type.names[i].toLowerCase() === 'function') {
needsSig = true;
break;
}
}
}
// and namespaces that are functions get a signature (but finding them is a
// bit messy)
else if (
kind === 'namespace' &&
meta &&
meta.code &&
meta.code.type &&
meta.code.type.match(/[Ff]unction/)
) {
needsSig = true;
}
return needsSig;
}