refract-redux-callbag
Advanced tools
Comparing version 1.2.0 to 1.3.0
{ | ||
"name": "refract-redux-callbag", | ||
"description": "Refract bindings for Redux with Callbag: harness the power of reactive programming to supercharge your components!", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "jsnext:main": "index.es.js", |
@@ -42,3 +42,3 @@ <p align="center"> | ||
* [Manage side effects](https://refract.js.org/) like API calls, analytics, logging, etc. | ||
* [Manipulate, replace and inject props](https://refract.js.org/usage/pushing-props), you can even [fully replace Redux `connect` HoC](https://refract.js.org/recipes/replace-connect) | ||
* [Manipulate, replace and inject props](https://refract.js.org/usage/pushing-to-props), you can even [fully replace Redux `connect` HoC](https://refract.js.org/recipes/replacing-connect) | ||
* [Handle state](https://refract.js.org/recipes/handling-state) | ||
@@ -45,0 +45,0 @@ * [Render components](https://refract.js.org/usage/rendering-components) |
@@ -10,2 +10,2 @@ export interface EnhancerOptions { | ||
) => UnsubscribeFn | ||
export declare type Selector<T> = (state: object) => T | ||
export declare type Selector<Type> = (state: object) => Type |
import { Source } from 'callbag' | ||
import { Selector } from './baseTypes' | ||
export interface ObserveFn { | ||
<T>(actionTypeOrListener: string | Selector<T>): Source<T> | ||
<Type>(actionTypeOrListener: string | Selector<Type>): Source<Type> | ||
} | ||
export interface Listener<T> { | ||
next: (val: T) => void | ||
export interface Listener<Type> { | ||
next: (val: Type) => void | ||
error: (err: any) => void | ||
complete: (val?: T) => void | ||
complete: (val?: Type) => void | ||
} | ||
export declare const observeFactory: (store: any) => ObserveFn |
@@ -1,2 +0,2 @@ | ||
import { StoreEnhancer, AnyAction, Action } from 'redux' | ||
import { StoreEnhancer, AnyAction, Action as ReduxAction } from 'redux' | ||
import { ObserveFn } from './observable' | ||
@@ -11,4 +11,4 @@ import { AddActionListener, EnhancerOptions } from './baseTypes' | ||
export default function refractStoreEnhancer< | ||
S = any, | ||
A extends Action<any> = AnyAction | ||
State = any, | ||
Action extends ReduxAction<any> = AnyAction | ||
>(options?: Partial<EnhancerOptions>): StoreEnhancer |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16386