infrastructure-components
Version:
Infrastructure-Components configure the infrastructure of your React-App as part of your React-Components.
27 lines (20 loc) • 529 B
text/typescript
import Types from './index'
/**
* A Component has no special function beyond the ones defined in IInfrastructure
*
*/
export interface IComponent {
}
/**
* check whether the provided object serves as a client
*
* can be used in the parser, we get a real object here!
*
* @param parsedComponent
*/
export const isComponent = (parsedComponent): boolean => {
if (parsedComponent !== undefined) {
return parsedComponent.infrastructureType === Types.INFRASTRUCTURE_TYPE_COMPONENT
}
return false;
};