refract-redux-xstream
Version:
Refract bindings for Redux with xstream: harness the power of reactive programming to supercharge your components!
14 lines (13 loc) • 504 B
TypeScript
import { StoreEnhancer, AnyAction, Action as ReduxAction } from 'redux'
import { StoreObserveFunction } from './observable'
import { AddActionListener, EnhancerOptions } from './baseTypes'
declare module 'redux' {
interface Store {
addActionListener: AddActionListener
observe: StoreObserveFunction
}
}
export default function refractStoreEnhancer<
State = any,
Action extends ReduxAction<any> = AnyAction
>(options?: Partial<EnhancerOptions>): StoreEnhancer