@motorcycle/types
Version:
A shared-kernel of types for Motorcycle
18 lines (16 loc) • 466 B
text/typescript
import { Stream } from '@most/types'
/**
* An IO Component function signature.
*
* @name IOComponent
* @example
* export type IOComponent<
* Sinks extends { readonly [key: string]: Stream<any> },
* Sources extends { readonly [key: string]: any }
* > = (sinks: Sinks) => Sources
* @type
*/
export type IOComponent<
Sinks extends { readonly [key: string]: Stream<any> },
Sources extends { readonly [key: string]: any }
> = (sinks: Sinks) => Sources