@empathyco/x-components
Version:
Empathy X Components
21 lines (12 loc) • 758 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) > [(constructor)](./x-components.xplugin._constructor_.md)
## XPlugin.(constructor)
Creates a new instance of the XPlugin with the given bus passed as parameter.
**Signature:**
```typescript
constructor(bus: XBus<XEventsTypes, WireMetadata>);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| bus | [XBus](./x-components.xbus.md)<!-- --><[XEventsTypes](./x-components.xeventstypes.md)<!-- -->, [WireMetadata](./x-components.wiremetadata.md)<!-- -->> | The XBus implementation to use for the plugin. |