UNPKG

@motorcycle/types

Version:

A shared-kernel of types for Motorcycle

18 lines (17 loc) 479 B
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 declare type IOComponent<Sinks extends { readonly [key: string]: Stream<any>; }, Sources extends { readonly [key: string]: any; }> = (sinks: Sinks) => Sources;