brookjs-eddy
Advanced tools
Comparing version 1.0.0-beta.0 to 1.0.0-beta.2
@@ -1,2 +0,2 @@ | ||
import { StoreCreator as ReduxStoreCreator, Reducer, StoreEnhancer, Store, Action, DeepPartial } from 'redux'; | ||
import { StoreCreator as ReduxStoreCreator, Reducer, StoreEnhancer, Store, Action, PreloadedState } from 'redux'; | ||
import { Delta } from 'brookjs-types'; | ||
@@ -16,4 +16,4 @@ declare const $$loop: unique symbol; | ||
declare type HandleCmd<A extends Action> = (cmd: A) => void; | ||
export declare const upgradeReducer: <L, A extends Action<any>, R extends (...args: any[]) => L | Result<L, A>>(reducer: R, handleCmd: HandleCmd<A>) => (...args: Parameters<R>) => L; | ||
export declare const eddy: () => (createStore: ReduxStoreCreator) => <S, A extends Action<any>, Ext, StateExt>(reducer: Reducer<S, A> | ((state: S | undefined, action: A) => S | Result<S, A>) | ((state: S, action: A) => S | Result<S, A>), state?: DeepPartial<S> | StoreEnhancer<Ext, StateExt> | undefined, enhancer?: StoreEnhancer<Ext, StateExt> | undefined) => Store<S & StateExt, A> & Ext; | ||
export declare const upgradeReducer: <L, A extends Action<any>>(reducer: (...args: any[]) => L | Result<L, A>, handleCmd: HandleCmd<A>) => (...args: any[]) => L; | ||
export declare const eddy: () => (createStore: ReduxStoreCreator) => <S, A extends Action<any>, Ext, StateExt>(reducer: Reducer<S, A> | ((state: S | undefined, action: A) => S | Result<S, A>) | ((state: S, action: A) => S | Result<S, A>), state?: PreloadedState<S> | StoreEnhancer<Ext, StateExt> | undefined, enhancer?: StoreEnhancer<Ext, StateExt> | undefined) => Store<S & StateExt, A> & Ext; | ||
declare type ReducerMapObject<S, A extends Action> = { | ||
@@ -26,3 +26,3 @@ [K in keyof S]: EddyReducer<S[K], A>; | ||
export declare const combineReducers: <S, A extends Action<any>>(reducerMap: ReducerMapObject<S, A>) => LiftedLoopReducer<S, A>; | ||
export declare const createStore: <S, A extends Action<string>>(reducer: EddyReducer<S, A>, initialState: S | undefined, delta: Delta<A, S>) => Store<S, A>; | ||
export declare const createStore: <S, A extends Action<string>>(reducer: EddyReducer<S, A>, initialState: PreloadedState<S> | undefined, delta: Delta<A, S>) => Store<S, A>; | ||
export {}; |
{ | ||
"name": "brookjs-eddy", | ||
"version": "1.0.0-beta.0", | ||
"version": "1.0.0-beta.2", | ||
"description": "reactive programming tools for well-structured, testable applications", | ||
@@ -30,3 +30,3 @@ "main": "dist/brookjs-eddy.cjs.js", | ||
}, | ||
"gitHead": "8ce4d20fe18beb6bab5ee900584c4e58b2bae550" | ||
"gitHead": "88326a65987eb57d05eeae297ffe84b8fc391cdc" | ||
} |
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
37384