redux-state-branch
Advanced tools
Comparing version 0.0.30 to 0.0.31
@@ -10,7 +10,7 @@ interface AnyAction<T = any> { | ||
export declare type ItemsT<T> = Partial<T> | Array<Partial<T>>; | ||
export interface IAction<T> extends AnyAction { | ||
items: ItemsT<T>; | ||
meta: { | ||
[key: string]: any; | ||
export interface StateBranchAction<ItemT, BranchStateT> extends AnyAction { | ||
items: { | ||
[key: string]: ItemT; | ||
}; | ||
meta: BranchStateT; | ||
} | ||
@@ -103,3 +103,3 @@ export interface Constants { | ||
defaultState?: BranchStateT; | ||
reducer?: (state: BranchStateT, action: IAction<ItemT>) => BranchStateT; | ||
reducer?: (state: BranchStateT, action: any) => BranchStateT; | ||
generateId?: () => string; | ||
@@ -106,0 +106,0 @@ }); |
{ | ||
"name": "redux-state-branch", | ||
"version": "0.0.30", | ||
"version": "0.0.31", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "A redux wrapper for sane people.", |
Sorry, the diff of this file is not supported yet
42873