reshow-flux-base
Advanced tools
Comparing version 0.17.42 to 0.17.43
@@ -49,3 +49,5 @@ "use strict"; | ||
* @template ActionType | ||
* @typedef {string|boolean|null|ActionObject|Payload|function(StateType):ActionType} DispatchAction | ||
* @callback DispatchCallback | ||
* @param {StateType} State | ||
* @returns {ActionType} | ||
*/ | ||
@@ -55,3 +57,3 @@ /** | ||
* @template ActionType | ||
* @typedef {function(StateType?, ActionType?, StateType?):any} FluxHandler | ||
* @typedef {ActionType|DispatchCallback<StateType, ActionType>} DispatchAction | ||
*/ | ||
@@ -61,2 +63,11 @@ /** | ||
* @template ActionType | ||
* @callback FluxHandler | ||
* @param {StateType} NextState | ||
* @param {ActionType} Action | ||
* @param {StateType} PrevState | ||
* @returns{any} | ||
*/ | ||
/** | ||
* @template StateType | ||
* @template ActionType | ||
* @callback EmitterResetCall | ||
@@ -63,0 +74,0 @@ * @returns {FluxHandler<StateType, ActionType>[]} |
{ | ||
"version": "0.17.42", | ||
"version": "0.17.43", | ||
"name": "reshow-flux-base", | ||
@@ -4,0 +4,0 @@ "repository": { |
@@ -34,4 +34,5 @@ /** | ||
export type InitStateType<StateType> = StateType | (() => StateType); | ||
export type DispatchAction<StateType, ActionType> = string | boolean | null | ActionObject | Payload | ((arg0: StateType) => ActionType); | ||
export type FluxHandler<StateType, ActionType> = (arg0: StateType | null, arg1: ActionType | null, arg2: StateType | null) => any; | ||
export type DispatchCallback<StateType, ActionType> = (State: StateType) => ActionType; | ||
export type DispatchAction<StateType, ActionType> = ActionType | DispatchCallback<StateType, ActionType>; | ||
export type FluxHandler<StateType, ActionType> = (NextState: StateType, Action: ActionType, PrevState: StateType) => any; | ||
export type EmitterResetCall<StateType, ActionType> = () => FluxHandler<StateType, ActionType>[]; | ||
@@ -50,3 +51,5 @@ export type EmitterAddCall<StateType, ActionType> = (handler: FluxHandler<StateType, ActionType>) => number; | ||
* @template ActionType | ||
* @typedef {string|boolean|null|ActionObject|Payload|function(StateType):ActionType} DispatchAction | ||
* @callback DispatchCallback | ||
* @param {StateType} State | ||
* @returns {ActionType} | ||
*/ | ||
@@ -56,3 +59,3 @@ /** | ||
* @template ActionType | ||
* @typedef {function(StateType?, ActionType?, StateType?):any} FluxHandler | ||
* @typedef {ActionType|DispatchCallback<StateType, ActionType>} DispatchAction | ||
*/ | ||
@@ -62,2 +65,11 @@ /** | ||
* @template ActionType | ||
* @callback FluxHandler | ||
* @param {StateType} NextState | ||
* @param {ActionType} Action | ||
* @param {StateType} PrevState | ||
* @returns{any} | ||
*/ | ||
/** | ||
* @template StateType | ||
* @template ActionType | ||
* @callback EmitterResetCall | ||
@@ -64,0 +76,0 @@ * @returns {FluxHandler<StateType, ActionType>[]} |
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
35394
1100