@empathyco/x-components
Version:
Empathy X Components
51 lines (24 loc) • 893 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
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
bus
</td><td>
[XBus](./x-components.xbus.md)<!-- --><[XEventsTypes](./x-components.xeventstypes.md)<!-- -->, [WireMetadata](./x-components.wiremetadata.md)<!-- -->>
</td><td>
The XBus implementation to use for the plugin.
</td></tr>
</tbody></table>