refract-xstream
Version:
Refract bindings for React with xstream: harness the power of reactive programming to supercharge your components!
13 lines (12 loc) • 418 B
TypeScript
export declare type Handler<Props, Effect, Context = any> = (
intialProps: Props,
initialContext?: Context
) => (val: Effect) => void
export declare type ErrorHandler<Props, Context = any> = (
intialProps: Props,
initialContext?: Context
) => (error: any) => void
export interface PushEvent {
(eventName: string): () => void
<Event = any>(eventName: string): (val: Event) => void
}