reshow-flux-base
Advanced tools
Comparing version 0.17.38 to 0.17.39
@@ -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
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
32502
1019