Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/redux-actions

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/redux-actions - npm Package Compare versions

Comparing version 2.6.2 to 2.6.3

75

redux-actions/index.d.ts

@@ -34,3 +34,6 @@ // Type definitions for redux-actions 2.6

export type ReducerMapValue<State, Payload> = Reducer<State, Payload> | ReducerNextThrow<State, Payload> | ReducerMap<State, Payload>;
export type ReducerMapValue<State, Payload> =
| Reducer<State, Payload>
| ReducerNextThrow<State, Payload>
| ReducerMap<State, Payload>;

@@ -42,3 +45,6 @@ export interface ReducerMap<State, Payload> {

export interface ReducerMapMeta<State, Payload, Meta> {
[actionType: string]: ReducerMeta<State, Payload, Meta> | ReducerNextThrowMeta<State, Payload, Meta> | ReducerMapMeta<State, Payload, Meta>;
[actionType: string]:
| ReducerMeta<State, Payload, Meta>
| ReducerNextThrowMeta<State, Payload, Meta>
| ReducerMapMeta<State, Payload, Meta>;
}

@@ -57,8 +63,8 @@

export type BaseActionFunctions<TAction> =
ActionFunction0<TAction> |
ActionFunction1<any, TAction> |
ActionFunction2<any, any, TAction> |
ActionFunction3<any, any, any, TAction> |
ActionFunction4<any, any, any, any, TAction> |
ActionFunctionAny<TAction>;
| ActionFunction0<TAction>
| ActionFunction1<any, TAction>
| ActionFunction2<any, any, TAction>
| ActionFunction3<any, any, any, TAction>
| ActionFunction4<any, any, any, any, TAction>
| ActionFunctionAny<TAction>;

@@ -75,3 +81,6 @@ export type ActionFunctions<Payload> = BaseActionFunctions<Action<Payload>>;

export type ReduxCompatibleReducerMeta<State, Payload, Meta> = (state: State | undefined, action: ActionMeta<Payload, Meta>) => State;
export type ReduxCompatibleReducerMeta<State, Payload, Meta> = (
state: State | undefined,
action: ActionMeta<Payload, Meta>,
) => State;

@@ -88,3 +97,3 @@ /** argument inferring borrowed from lodash definitions */

export function createAction(
actionType: string
actionType: string,
): ActionFunctionAny<Action<any>>;

@@ -94,3 +103,3 @@

actionType: string,
payloadCreator: ActionFunction0<Payload>
payloadCreator: ActionFunction0<Payload>,
): ActionFunction0<Action<Payload>>;

@@ -100,3 +109,3 @@

actionType: string,
payloadCreator: ActionFunction1<Arg1, Payload>
payloadCreator: ActionFunction1<Arg1, Payload>,
): ActionFunction1<Arg1, Action<Payload>>;

@@ -106,3 +115,3 @@

actionType: string,
payloadCreator: ActionFunction2<Arg1, Arg2, Payload>
payloadCreator: ActionFunction2<Arg1, Arg2, Payload>,
): ActionFunction2<Arg1, Arg2, Action<Payload>>;

@@ -112,3 +121,3 @@

actionType: string,
payloadCreator: ActionFunction3<Arg1, Arg2, Arg3, Payload>
payloadCreator: ActionFunction3<Arg1, Arg2, Arg3, Payload>,
): ActionFunction3<Arg1, Arg2, Arg3, Action<Payload>>;

@@ -118,7 +127,7 @@

actionType: string,
payloadCreator: ActionFunction4<Arg1, Arg2, Arg3, Arg4, Payload>
payloadCreator: ActionFunction4<Arg1, Arg2, Arg3, Arg4, Payload>,
): ActionFunction4<Arg1, Arg2, Arg3, Arg4, Action<Payload>>;
export function createAction<Payload>(
actionType: string
actionType: string,
): ActionFunction1<Payload, Action<Payload>>;

@@ -129,3 +138,3 @@

payloadCreator: null | undefined,
metaCreator: ActionFunctionAny<Meta>
metaCreator: ActionFunctionAny<Meta>,
): ActionFunctionAny<ActionMeta<any, Meta>>;

@@ -136,3 +145,3 @@

payloadCreator: ActionFunctionAny<Payload>,
metaCreator: ActionFunctionAny<Meta>
metaCreator: ActionFunctionAny<Meta>,
): ActionFunctionAny<ActionMeta<Payload, Meta>>;

@@ -143,3 +152,3 @@

payloadCreator: ActionFunction1<Arg1, Payload>,
metaCreator: ActionFunction1<Arg1, Meta>
metaCreator: ActionFunction1<Arg1, Meta>,
): ActionFunction1<Arg1, ActionMeta<Payload, Meta>>;

@@ -150,3 +159,3 @@

payloadCreator: ActionFunction2<Arg1, Arg2, Payload>,
metaCreator: ActionFunction2<Arg1, Arg2, Meta>
metaCreator: ActionFunction2<Arg1, Arg2, Meta>,
): ActionFunction2<Arg1, Arg2, ActionMeta<Payload, Meta>>;

@@ -157,3 +166,3 @@

payloadCreator: ActionFunction3<Arg1, Arg2, Arg3, Payload>,
metaCreator: ActionFunction3<Arg1, Arg2, Arg3, Meta>
metaCreator: ActionFunction3<Arg1, Arg2, Arg3, Meta>,
): ActionFunction3<Arg1, Arg2, Arg3, ActionMeta<Payload, Meta>>;

@@ -164,3 +173,3 @@

payloadCreator: ActionFunction4<Arg1, Arg2, Arg3, Arg4, Payload>,
metaCreator: ActionFunction4<Arg1, Arg2, Arg3, Arg4, Meta>
metaCreator: ActionFunction4<Arg1, Arg2, Arg3, Arg4, Meta>,
): ActionFunction4<Arg1, Arg2, Arg3, Arg4, ActionMeta<Payload, Meta>>;

@@ -171,3 +180,3 @@

reducer: Reducer<State, Payload> | ReducerNextThrow<State, Payload>,
initialState: State
initialState: State,
): ReduxCompatibleReducer<State, Payload>;

@@ -178,3 +187,3 @@

reducer: ReducerMeta<State, Payload, Meta> | ReducerNextThrowMeta<State, Payload, Meta>,
initialState: State
initialState: State,
): ReduxCompatibleReducerMeta<State, Payload, Meta>;

@@ -190,3 +199,3 @@

initialState: StateAndPayload,
options?: Options
options?: Options,
): ReduxCompatibleReducer<StateAndPayload, StateAndPayload>;

@@ -197,3 +206,3 @@

initialState: State,
options?: Options
options?: Options,
): ReduxCompatibleReducer<State, Payload>;

@@ -204,3 +213,3 @@

initialState: State,
options?: Options
options?: Options,
): ReduxCompatibleReducerMeta<State, Payload, Meta>;

@@ -213,6 +222,6 @@

[actionType: string]:
ActionMap<Payload, Meta> |
ActionFunctionAny<Payload> |
[ActionFunctionAny<Payload>, ActionFunctionAny<Meta>] |
undefined;
| ActionMap<Payload, Meta>
| ActionFunctionAny<Payload>
| [ActionFunctionAny<Payload>, ActionFunctionAny<Meta>]
| undefined;
}

@@ -224,3 +233,3 @@

): {
[actionName: string]: ActionFunctionAny<Action<Payload>>
[actionName: string]: ActionFunctionAny<Action<Payload>>;
};

@@ -232,3 +241,3 @@

): {
[actionName: string]: ActionFunctionAny<Action<any>>
[actionName: string]: ActionFunctionAny<Action<any>>;
};
{
"name": "@types/redux-actions",
"version": "2.6.2",
"version": "2.6.3",
"description": "TypeScript definitions for redux-actions",

@@ -48,4 +48,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-actions",

"dependencies": {},
"typesPublisherContentHash": "c8140493914bd52fb23465f305c8611e764ebf456fa04cdaed348ef66cc8ea15",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "9b2f49ae819016d8c12ea49a50af1fc84f909b2e2d8e78b1777dc2535c773962",
"typeScriptVersion": "4.5"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Wed, 07 Jul 2021 18:31:52 GMT
* Last updated: Wed, 27 Sep 2023 07:12:04 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `ReduxActions`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc