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 0.8.31 to 0.8.32

75

redux-actions/index.d.ts

@@ -12,56 +12,39 @@ // Type definitions for redux-actions v0.8.0

interface BaseAction {
type: string
type: string;
}
interface Action<Payload> extends BaseAction {
payload?: Payload
error?: boolean
meta?: any
export interface Action<Payload> extends BaseAction {
payload?: Payload;
error?: boolean;
}
interface ActionMeta<Payload, Meta> extends Action<Payload> {
meta: Meta
export interface ActionMeta<Payload, Meta> extends Action<Payload> {
meta: Meta;
}
type PayloadCreator<Input, Payload> = (...args: Input[]) => Payload;
interface ReducerMap<State, Payload> {
[actionType: string]: Reducer<State, Payload>;
}
type MetaCreator<Input, Payload> = (...args: Input[]) => Payload;
interface Reducer<State, Payload> {
(state: State, action: Action<Payload>): State;
}
type Reducer<State, Payload> = (state: State, action: Action<Payload>) => State;
interface ReducerMeta<State, Payload, Meta> extends Reducer<State, Payload> {
(state: State, action: ActionMeta<Payload, Meta>): State;
}
type ReducerMeta<State, Payload, Meta> = (state: State, action: ActionMeta<Payload, Meta>) => State;
type ReducerMap<State, Payload> = {
[actionType: string]: Reducer<State, Payload>
};
export function createAction(
export function createAction<Payload>(
actionType: string,
payloadCreator?: PayloadCreator<any, any>,
metaCreator?: MetaCreator<any, any>
): (...args: any[]) => Action<any>;
payloadCreator?: (...args: any[]) => Payload,
): (...args: any[]) => Action<Payload>;
export function createAction<InputAndPayload>(
export function createAction<Payload, Meta>(
actionType: string,
payloadCreator?: PayloadCreator<InputAndPayload, InputAndPayload>
): (...args: InputAndPayload[]) => Action<InputAndPayload>;
payloadCreator: (...args: any[]) => Payload,
metaCreator: (...args: any[]) => Meta
): (...args: any[]) => ActionMeta<Payload, Meta>;
export function createAction<Input, Payload>(
actionType: string,
payloadCreator?: PayloadCreator<Input, Payload>
): (...args: Input[]) => Action<Payload>;
export function createAction<Input, Payload, Meta>(
actionType: string,
payloadCreator: PayloadCreator<Input, Payload>,
metaCreator: MetaCreator<Input, Meta>
): (...args: Input[]) => ActionMeta<Payload, Meta>;
export function handleAction<StateAndPayload>(
actionType: { toString: () => string },
reducer: Reducer<StateAndPayload, StateAndPayload> | ReducerMap<StateAndPayload, StateAndPayload>
): Reducer<StateAndPayload, StateAndPayload>;
export function handleAction<State, Payload>(
actionType: { toString: () => string },
actionType: { toString(): string },
reducer: Reducer<State, Payload> | ReducerMap<State, Payload>

@@ -71,11 +54,6 @@ ): Reducer<State, Payload>;

export function handleAction<State, Payload, Meta>(
actionType: { toString: () => string },
actionType: { toString(): string },
reducer: ReducerMeta<State, Payload, Meta> | ReducerMap<State, Payload>
): Reducer<State, Payload>;
export function handleActions<StateAndPayload>(
reducerMap: ReducerMap<StateAndPayload, StateAndPayload>,
initialState?: StateAndPayload
): Reducer<StateAndPayload, StateAndPayload>;
export function handleActions<State, Payload>(

@@ -87,5 +65,4 @@ reducerMap: ReducerMap<State, Payload>,

export function combineActions(
...actionTypes: { toString: () => string }[]
): { toString: () => string };
...actionTypes: { toString(): string }[]
): { toString(): string };
}
{
"name": "@types/redux-actions",
"version": "0.8.31",
"version": "0.8.32",
"description": "TypeScript definitions for redux-actions v0.8.0",

@@ -16,3 +16,3 @@ "license": "MIT",

"typings": "index.d.ts",
"typesPublisherContentHash": "6a1883e482c6019614c56b7b372166992e61417d33dd1b320babb345e0be32e4"
"typesPublisherContentHash": "229feaecb3a32ab2709921fd7c25be23c80e8b4d06ebb52855def6cec55d1821"
}

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

Additional Details
* Last updated: Wed, 26 Oct 2016 19:23:30 GMT
* Last updated: Mon, 14 Nov 2016 19:35:02 GMT
* File structure: ProperModule

@@ -14,0 +14,0 @@ * Library Dependencies: none

@@ -6,4 +6,4 @@ {

"moduleDependencies": [],
"libraryMajorVersion": "0",
"libraryMinorVersion": "8",
"libraryMajorVersion": 0,
"libraryMinorVersion": 8,
"libraryName": "redux-actions v0.8.0",

@@ -25,3 +25,3 @@ "typingsPackageName": "redux-actions",

"hasPackageJson": false,
"contentHash": "6a1883e482c6019614c56b7b372166992e61417d33dd1b320babb345e0be32e4"
"contentHash": "229feaecb3a32ab2709921fd7c25be23c80e8b4d06ebb52855def6cec55d1821"
}
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