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.36 to 0.17.37

14

build/cjs/src/createReducer.js

@@ -170,5 +170,13 @@ "use strict";

* @template StateType
* @callback DispatchType
* @param {DispatchAction} action
* @param {Payload} [actionParams]
* @returns {State<StateType>} endingState
*/
/**
* @template StateType
* @param {ReducerType<StateType>} reducer
* @param {InitStateType<StateType>} [initState]
* @returns {[StoreObject<StateType>, dispatch]}
* @returns {[StoreObject<StateType>, DispatchType<StateType>]}
*/

@@ -182,5 +190,3 @@ exports.refineAction = refineAction;

/**
* @param {DispatchAction} action
* @param {Payload} [actionParams]
* @returns {State<StateType>} endingState
* @type {DispatchType<StateType>}
*/

@@ -187,0 +193,0 @@ var dispatch = function dispatch(action, actionParams) {

{
"version": "0.17.36",
"version": "0.17.37",
"name": "reshow-flux-base",

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

@@ -45,2 +45,3 @@ /**

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

@@ -97,6 +98,13 @@ * @template StateType

* @template StateType
* @callback DispatchType
* @param {DispatchAction} action
* @param {Payload} [actionParams]
* @returns {State<StateType>} endingState
*/
/**
* @template StateType
* @param {ReducerType<StateType>} reducer
* @param {InitStateType<StateType>} [initState]
* @returns {[StoreObject<StateType>, dispatch]}
* @returns {[StoreObject<StateType>, DispatchType<StateType>]}
*/
declare function createReducer<StateType>(reducer: ReducerType<StateType>, initState?: InitStateType<StateType>): [StoreObject<StateType>, (action: DispatchAction, actionParams?: Payload) => StateType];
declare function createReducer<StateType>(reducer: ReducerType<StateType>, initState?: InitStateType<StateType>): [StoreObject<StateType>, DispatchType<StateType>];
export { default as SimpleMap } from "./SimpleMap";
export type InitStateType<StateType> = import("./createReducer").InitStateType<StateType>;
export type InitStateType = import("./createReducer").InitStateType<StateType>;
export type ReducerType = import("./createReducer").ReducerType<StateType>;
export type DispatchType = import("./createReducer").DispatchType<StateType>;
export { default as createReducer, refineAction, StoreObject, ActionObject } from "./createReducer";

Sorry, the diff of this file is not supported yet

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