@empathyco/x-components
Version:
Empathy X Components
57 lines (27 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) > [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
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
config
</td><td>
[SnippetConfig](./x-components.snippetconfig.md)
</td><td>
The config coming from the customer snippet.
</td></tr>
</tbody></table>
**Returns:**
Promise<void>
A promise that will be resolved once x components are initialized.