reshow-flux-base
Advanced tools
Comparing version 0.17.35 to 0.17.36
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31445
988