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

reshow-flux-base

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reshow-flux-base - npm Package Compare versions

Comparing version 0.17.38 to 0.17.39

7

build/cjs/src/createReducer.js

@@ -50,3 +50,4 @@ "use strict";

/**
* @typedef {string|boolean|ActionObject|Payload|function(State<any>):ActionObject} DispatchAction
* @template StateType
* @typedef {string|boolean|null|ActionObject|Payload|function(State<StateType>):ActionObject} DispatchAction
*/

@@ -142,3 +143,3 @@ /**

* @template StateType
* @param {DispatchAction} action
* @param {DispatchAction<StateType>} action
* @param {Payload} [params]

@@ -173,3 +174,3 @@ * @param {State<StateType>} [prevState]

* @callback DispatchType
* @param {DispatchAction} action
* @param {DispatchAction<StateType>} action
* @param {Payload} [actionParams]

@@ -176,0 +177,0 @@ * @returns {State<StateType>} endingState

{
"version": "0.17.38",
"version": "0.17.39",
"name": "reshow-flux-base",

@@ -4,0 +4,0 @@ "repository": {

@@ -31,3 +31,3 @@ /**

}
export function refineAction<StateType>(action: DispatchAction, params?: Payload, prevState?: StateType): ActionObject;
export function refineAction<StateType>(action: DispatchAction<StateType>, params?: Payload, prevState?: StateType): ActionObject;
export default createReducer;

@@ -39,3 +39,3 @@ export type State<StateType> = StateType;

export type InitStateType<StateType> = State<StateType> | (() => State<StateType>);
export type DispatchAction = string | boolean | ActionObject | Payload | ((arg0: State<any>) => ActionObject);
export type DispatchAction<StateType> = string | boolean | null | ActionObject | Payload | ((arg0: State<StateType>) => ActionObject);
export type FluxHandler = (arg0: State<any> | null, arg1: ActionObject | null, arg2: State<any> | null) => State<any>;

@@ -47,3 +47,3 @@ export type EmitterResetCall = () => FluxHandler[];

export type ReducerType<StateType> = (arg0: State<StateType>, arg1: ActionObject) => State<any>;
export type DispatchType<StateType> = (action: DispatchAction, actionParams?: Payload) => State<StateType>;
export type DispatchType<StateType> = (action: DispatchAction<StateType>, actionParams?: Payload) => State<StateType>;
/**

@@ -54,3 +54,4 @@ * @template StateType

/**
* @typedef {string|boolean|ActionObject|Payload|function(State<any>):ActionObject} DispatchAction
* @template StateType
* @typedef {string|boolean|null|ActionObject|Payload|function(State<StateType>):ActionObject} DispatchAction
*/

@@ -102,3 +103,3 @@ /**

* @callback DispatchType
* @param {DispatchAction} action
* @param {DispatchAction<StateType>} action
* @param {Payload} [actionParams]

@@ -105,0 +106,0 @@ * @returns {State<StateType>} endingState

Sorry, the diff of this file is not supported yet

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