refract-redux-rxjs
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -42,3 +42,4 @@ import { from, Observable } from 'rxjs'; | ||
var defaultOptions = { | ||
eventsPrefix: '@@event/' | ||
eventsPrefix: '@@event/', | ||
methodName: 'observe' | ||
}; | ||
@@ -74,3 +75,3 @@ function refractStoreEnhancer(options) { | ||
}; | ||
store.observe = observeFactory(store); | ||
store[opts.methodName] = observeFactory(store); | ||
return store; | ||
@@ -77,0 +78,0 @@ }; }; |
@@ -46,3 +46,4 @@ 'use strict'; | ||
var defaultOptions = { | ||
eventsPrefix: '@@event/' | ||
eventsPrefix: '@@event/', | ||
methodName: 'observe' | ||
}; | ||
@@ -78,3 +79,3 @@ function refractStoreEnhancer(options) { | ||
}; | ||
store.observe = observeFactory(store); | ||
store[opts.methodName] = observeFactory(store); | ||
return store; | ||
@@ -81,0 +82,0 @@ }; }; |
{ | ||
"name": "refract-redux-rxjs", | ||
"description": "Refract bindings for Redux with RxJS: harness the power of reactive programming to supercharge your components!", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "jsnext:main": "index.es.js", |
export interface EnhancerOptions { | ||
eventsPrefix: string | ||
methodName: string | ||
} | ||
@@ -4,0 +5,0 @@ export declare type ActionListener = (action: object) => void |
import refractEnhancer from './refractEnhancer' | ||
import { EnhancerOptions } from './baseTypes' | ||
export { refractEnhancer, EnhancerOptions } | ||
import { StoreObserveFunction } from './observable' | ||
export { refractEnhancer, EnhancerOptions, StoreObserveFunction } |
import { Observable } from 'rxjs' | ||
import { Selector } from './baseTypes' | ||
export interface ObserveFn { | ||
export interface StoreObserveFunction { | ||
<Type>(actionTypeOrListener: string | Selector<Type>): Observable<Type> | ||
} | ||
export declare const observeFactory: (store: any) => ObserveFn | ||
export declare const observeFactory: (store: any) => StoreObserveFunction |
import { StoreEnhancer, AnyAction, Action as ReduxAction } from 'redux' | ||
import { ObserveFn } from './observable' | ||
import { StoreObserveFunction } from './observable' | ||
import { AddActionListener, EnhancerOptions } from './baseTypes' | ||
@@ -7,3 +7,3 @@ declare module 'redux' { | ||
addActionListener: AddActionListener | ||
observe: ObserveFn | ||
observe: StoreObserveFunction | ||
} | ||
@@ -10,0 +10,0 @@ } |
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
15416
180