@empathyco/x-components
Version:
Empathy X Components
27 lines (15 loc) • 659 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [createWiring](./x-components.createwiring.md)
## createWiring() function
Util function to generate type-safe wiring. If TypeScript ever accepts the PR about generic type inference this function can be removed.
**Signature:**
```typescript
export declare function createWiring<T extends Partial<Wiring>>(wiring: T): T;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| wiring | T | The wiring to create. |
**Returns:**
T
Type-safe wiring.