infrastructure-components
Version:
Infrastructure-Components configure the infrastructure of your React-App as part of your React-Components.
20 lines • 673 B
JavaScript
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const index_1 = __importDefault(require("./index"));
/**
* check whether the provided object serves as a client
*
* can be used in the parser, we get a real object here!
*
* @param parsedComponent
*/
exports.isComponent = (parsedComponent) => {
if (parsedComponent !== undefined) {
return parsedComponent.infrastructureType === index_1.default.INFRASTRUCTURE_TYPE_COMPONENT;
}
return false;
};
//# sourceMappingURL=component.js.map
;