@empathyco/x-components
Version:
Empathy X Components
55 lines (26 loc) • 931 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
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
xModule
</td><td>
[AnyXModule](./x-components.anyxmodule.md)
</td><td>
The module to register.
</td></tr>
</tbody></table>
**Returns:**
void