UNPKG

@motorcycle/types

Version:

A shared-kernel of types for Motorcycle

18 lines (17 loc) 507 B
import { Stream } from '@most/types'; /** * An Effectful Component function signature. * * @name EffectfulComponent * @example * export type EffectfulComponent< * Sinks extends { readonly [key: string]: Stream<any> }, * Sources extends { readonly [key: string]: any } * > = (sinks: Sinks) => Sources * @type */ export declare type EffectfulComponent<Sinks extends { readonly [key: string]: Stream<any>; }, Sources extends { readonly [key: string]: any; }> = (sinks: Sinks) => Sources;