Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function isGenericTypeParameter(doc) {
if (doc.containerDoc instanceof ClassExportDoc.ClassExportDoc) {
return doc.containerDoc.typeParams && `<${doc.name}>` === doc.containerDoc.typeParams;
}
return false;
}
function isProperty(doc) {