@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 828 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [assertXPluginOptionsAreValid](./x-components.assertxpluginoptionsarevalid.md)
## assertXPluginOptionsAreValid() function
Asserts that the passed options object is valid, providing helpful error messages.
**Signature:**
```typescript
export declare function assertXPluginOptionsAreValid(options: XPluginOptions | undefined): asserts options is XPluginOptions;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| options | [XPluginOptions](./x-components.xpluginoptions.md) \| undefined | The options to check if they are valid. |
**Returns:**
asserts options is [XPluginOptions](./x-components.xpluginoptions.md)