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.35 to 0.17.36

19

build/cjs/src/createReducer.js

@@ -78,8 +78,16 @@ "use strict";

* @template StateType
* @typedef {object} emiter
* @property {EmitterResetCall} reset
* @property {EmitterAddCall} add
* @property {EmitterRemoveCall} remove
* @property {EmitterEmitCall<StateType>} emit
* @interface
*/
exports.StoreObject = StoreObject;
var emiter = /*#__PURE__*/(0, _createClass2["default"])(function emiter() {
(0, _classCallCheck2["default"])(this, emiter);
/** @type {EmitterResetCall} */
(0, _defineProperty2["default"])(this, "reset", void 0);
/** @type {EmitterAddCall} */
(0, _defineProperty2["default"])(this, "add", void 0);
/** @type {EmitterRemoveCall} */
(0, _defineProperty2["default"])(this, "remove", void 0);
/** @type {EmitterEmitCall<StateType>} */
(0, _defineProperty2["default"])(this, "emit", void 0);
});
/**

@@ -89,3 +97,2 @@ * @template StateType

*/
exports.StoreObject = StoreObject;
var getMitt = function getMitt() {

@@ -92,0 +99,0 @@ /**

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

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

@@ -44,9 +44,48 @@ /**

export type EmitterEmitCall<StateType> = (state: State<StateType>, action: ActionObject, prevState: State<StateType>) => any;
export type emiter<StateType> = {
export type ReducerType<StateType> = (arg0: State<StateType>, arg1: ActionObject) => State<any>;
/**
* @template StateType
* @typedef {State<StateType>|function():State<StateType>} InitStateType
*/
/**
* @typedef {string|boolean|ActionObject|Payload|function(State<any>):ActionObject} DispatchAction
*/
/**
* @typedef {function(State<any>?, ActionObject?, State<any>?):State<any>} FluxHandler
*/
/**
* @callback EmitterResetCall
* @returns {FluxHandler[]}
*/
/**
* @callback EmitterAddCall
* @param {FluxHandler} handler
* @returns {number}
*/
/**
* @callback EmitterRemoveCall
* @param {FluxHandler} handler
* @returns {FluxHandler[]}
*/
/**
* @template StateType
* @callback EmitterEmitCall
* @param {State<StateType>} state
* @param {ActionObject} action
* @param {State<StateType>} prevState
*/
/**
* @template StateType
* @interface
*/
declare class emiter<StateType> {
/** @type {EmitterResetCall} */
reset: EmitterResetCall;
/** @type {EmitterAddCall} */
add: EmitterAddCall;
/** @type {EmitterRemoveCall} */
remove: EmitterRemoveCall;
/** @type {EmitterEmitCall<StateType>} */
emit: EmitterEmitCall<StateType>;
};
export type ReducerType<StateType> = (arg0: State<StateType>, arg1: ActionObject) => State<any>;
}
/**

@@ -53,0 +92,0 @@ * @template StateType

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