refract-xstream
Version:
Refract bindings for React with xstream: harness the power of reactive programming to supercharge your components!
16 lines (15 loc) • 487 B
TypeScript
import { Aperture } from './observable'
import { Handler, ErrorHandler } from './baseTypes'
export declare const configureHook: <Data, Effect>(
aperture: Aperture<Data, Effect, any>,
data: Data,
handler?: Handler<Data, Effect, any>,
errorHandler?: ErrorHandler<Data, any>,
hookName?: string
) => {
data: any
unsubscribe: () => void
pushMountEvent: () => void
pushData: (data: Data) => void
registerSetData: (setData: any) => void
}