Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

rainbow-actions

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rainbow-actions - npm Package Compare versions

Comparing version
0.2.2
to
0.2.3
+6
-0
_types.d.ts

@@ -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;
{
"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",

@@ -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;