@ng-doc/builder
Version:
<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>
21 lines • 648 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getKindType = getKindType;
const core_1 = require("@ng-doc/core");
const ts_morph_1 = require("ts-morph");
const get_declaration_type_1 = require("./get-declaration-type");
/**
*
* @param node
*/
function getKindType(node) {
if (ts_morph_1.Node.isClassDeclaration(node)) {
for (const decorator of core_1.NgDocAngularEntities) {
if (node.getDecorator(decorator)) {
return decorator;
}
}
}
return (0, get_declaration_type_1.getDeclarationType)(node);
}
//# sourceMappingURL=get-kind-type.js.map
;