<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [XPlugin](./x-components.xplugin.md) &gt; [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

