@empathyco/x-components
Version:
Empathy X Components
27 lines (15 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) > [BaseXAPI](./x-components.basexapi.md) > [init](./x-components.basexapi.init.md)
## BaseXAPI.init() method
Initializes the Application passing the [SnippetConfig](./x-components.snippetconfig.md)<!-- -->.
**Signature:**
```typescript
init(config: SnippetConfig): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| config | [SnippetConfig](./x-components.snippetconfig.md) | The config coming from the customer snippet. |
**Returns:**
Promise<void>
A promise that will be resolved once x components are initialized.