rainbow-actions
Advanced tools
+6
-0
@@ -31,1 +31,7 @@ export type PayloadDict = Record<string, unknown>; | ||
| : T | ||
| export type AnyAction = { | ||
| type: string; | ||
| payload?: any; | ||
| meta?: any; | ||
| } |
+2
-2
@@ -1,2 +0,2 @@ | ||
| import type {AbstractAction, ActionUnionToDictionary, DeepWriteable} from './_types'; | ||
| import type {AbstractAction, ActionUnionToDictionary, AnyAction, DeepWriteable} from './_types'; | ||
@@ -35,2 +35,2 @@ /** | ||
| state: S, | ||
| ): (state: S | undefined, action: A) => S; | ||
| ): (state: S | undefined, action: A | AnyAction) => S; |
+1
-1
| { | ||
| "name": "rainbow-actions", | ||
| "version": "0.2.2", | ||
| "version": "0.2.3", | ||
| "description": "Type safe and namespaced redux actions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+2
-2
@@ -1,2 +0,2 @@ | ||
| import type {AbstractAction, ActionUnionToDictionary, DeepReadonly} from './_types'; | ||
| import type {AbstractAction, ActionUnionToDictionary, AnyAction, DeepReadonly} from './_types'; | ||
@@ -33,2 +33,2 @@ /** | ||
| state: S, | ||
| ): (state: S | undefined, action: A) => S; | ||
| ): (state: S | undefined, action: A | AnyAction) => S; |
19651
0.66%328
1.55%