@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 796 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [XPlugin](./x-components.xplugin.md) > [registerXModule](./x-components.xplugin.registerxmodule.md)
## XPlugin.registerXModule() method
If the plugin has already been installed, it immediately registers a [XModule](./x-components.xmodule.md)<!-- -->. If it has not been installed yet, it stores the module in a list until the plugin is installed.
**Signature:**
```typescript
static registerXModule(xModule: AnyXModule): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| xModule | [AnyXModule](./x-components.anyxmodule.md) | The module to register. |
**Returns:**
void