UNPKG

@empathyco/x-components

Version:
27 lines (15 loc) 659 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [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.