redux-fluent
Advanced tools
Comparing version 0.7.0 to 0.7.1
/**! | ||
* @name redux-fluent | ||
* @version 0.7.0 | ||
* @version 0.7.1 | ||
* @author Code-Y (https://github.com/Code-Y) | ||
@@ -11,3 +11,3 @@ * @description Tiny and eloquent way to manage a redux-like state manager | ||
* @build-info development - Tue Dec 26 2017 16:22:12 GMT+0000 (UTC) | ||
* @build-info development - Tue Dec 26 2017 16:48:57 GMT+0000 (UTC) | ||
* @homepage https://github.com/Code-Y/redux-fluent#readme | ||
@@ -14,0 +14,0 @@ * @keywords [ redux, ngrx-store, typescript, state-management ] |
/**! | ||
* @name redux-fluent | ||
* @version 0.7.0 | ||
* @version 0.7.1 | ||
* @author Code-Y (https://github.com/Code-Y) | ||
@@ -11,3 +11,3 @@ * @description Tiny and eloquent way to manage a redux-like state manager | ||
* @build-info production - Tue Dec 26 2017 16:22:12 GMT+0000 (UTC) | ||
* @build-info production - Tue Dec 26 2017 16:48:57 GMT+0000 (UTC) | ||
* @homepage https://github.com/Code-Y/redux-fluent#readme | ||
@@ -14,0 +14,0 @@ * @keywords [ redux, ngrx-store, typescript, state-management ] |
@@ -9,10 +9,18 @@ declare namespace /* Interfaces */ I { | ||
export interface ActionError<T extends string , Error, M> extends Action { | ||
export interface ActionError< | ||
T extends string, | ||
E extends Error, | ||
M | ||
> extends Action { | ||
type: T; | ||
error: true; | ||
payload: Error; | ||
payload: E; | ||
meta: M; | ||
} | ||
export interface ActionSuccess<T extends string, P, M> extends Action { | ||
export interface ActionSuccess< | ||
T extends string, | ||
P extends { [key: string]: any } | null, | ||
M | ||
> extends Action { | ||
type: T; | ||
@@ -40,3 +48,3 @@ error: false; | ||
interface Default<D, S, C> { | ||
<A extends Action>(reducer: (state: S, action: A, config: C) => S): { | ||
(state: S): { | ||
domain: D; | ||
@@ -47,2 +55,8 @@ toString(): D; | ||
}; | ||
<A extends Action>(arg: (state: S, action: A, config: C) => S): { | ||
domain: D; | ||
toString(): D; | ||
<A extends Action>(state: S, action: A): S; | ||
}; | ||
} | ||
@@ -49,0 +63,0 @@ |
{ | ||
"name": "redux-fluent", | ||
"license": "ISC", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"homepage": "https://github.com/Code-Y/redux-fluent#readme", | ||
@@ -6,0 +6,0 @@ "description": "Tiny and eloquent way to manage a redux-like state manager", |
Sorry, the diff of this file is not supported yet
48558
359