UNPKG

@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>

16 lines 679 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isStandalone = isStandalone; const get_component_decorator_1 = require("./get-component-decorator"); const get_directive_decorator_1 = require("./get-directive-decorator"); const get_pipe_decorator_1 = require("./get-pipe-decorator"); /** * * @param cls * @param notFoundResult */ function isStandalone(cls) { const decorator = (0, get_component_decorator_1.getComponentDecorator)(cls) ?? (0, get_directive_decorator_1.getDirectiveDecorator)(cls) ?? (0, get_pipe_decorator_1.getPipeDecorator)(cls); return decorator?.standalone !== false; } //# sourceMappingURL=is-standalone.js.map