UNPKG

@empathyco/x-components

Version:
27 lines (15 loc) 761 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [isXComponent](./x-components.isxcomponent.md) ## isXComponent() function Returns if the component is an X-Component. An X-Component is a component that has an [XModule](./x-components.xmodule.md) associated to it. **Signature:** ```typescript export declare function isXComponent(component: ComponentPublicInstance): boolean; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | component | ComponentPublicInstance | The component to check if it is an X-Component. | **Returns:** boolean A boolean which flags if a component is a X-Component.