@empathyco/x-components
Version:
Empathy X Components
57 lines (27 loc) • 794 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
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
wiring
</td><td>
T
</td><td>
The wiring to create.
</td></tr>
</tbody></table>
**Returns:**
T
Type-safe wiring.