reshow-flux-base
Advanced tools
Comparing version 0.17.44 to 0.17.45
@@ -18,2 +18,7 @@ "use strict"; | ||
/** | ||
* @template ActionType | ||
* @typedef {import('./type').RefineAction<ActionType>} RefineAction | ||
*/ | ||
/** | ||
* @typedef {import('./type').Payload} Payload | ||
@@ -89,3 +94,3 @@ */ | ||
* @param {StateType} [prevState] | ||
* @returns {ActionType} lazy actions | ||
* @returns {RefineAction<ActionType>} lazy actions | ||
*/ | ||
@@ -114,3 +119,3 @@ var refineAction = function refineAction(action, params, prevState) { | ||
* @param {StateType} StateArg | ||
* @param {ActionType} ActionArg | ||
* @param {RefineAction<ActionType>} ActionArg | ||
* @returns {StateType} | ||
@@ -117,0 +122,0 @@ */ |
@@ -24,2 +24,6 @@ "use strict"; | ||
/** | ||
* @template ActionType | ||
* @typedef {ActionObject|ActionType} RefineAction | ||
*/ | ||
/** | ||
* @template StateType | ||
@@ -29,3 +33,3 @@ * @template ActionType | ||
* @param {StateType} NextState | ||
* @param {ActionType} Action | ||
* @param {RefineAction<ActionType>} Action | ||
* @param {StateType} PrevState | ||
@@ -59,3 +63,3 @@ * @returns{any} | ||
* @param {StateType} state | ||
* @param {ActionType} action | ||
* @param {RefineAction<ActionType>} action | ||
* @param {StateType} prevState | ||
@@ -62,0 +66,0 @@ */ |
{ | ||
"version": "0.17.44", | ||
"version": "0.17.45", | ||
"name": "reshow-flux-base", | ||
@@ -4,0 +4,0 @@ "repository": { |
@@ -1,8 +0,9 @@ | ||
export function refineAction<StateType, ActionType>(action: DispatchAction<StateType, ActionType>, params?: Payload, prevState?: StateType): ActionType; | ||
export function refineAction<StateType, ActionType>(action: DispatchAction<StateType, ActionType>, params?: Payload, prevState?: StateType): RefineAction<ActionType>; | ||
export default createReducer; | ||
export type FluxHandler<StateType, ActionType> = import('./type').FluxHandler<StateType, ActionType>; | ||
export type RefineAction<ActionType> = import('./type').RefineAction<ActionType>; | ||
export type Payload = import('./type').Payload; | ||
export type DispatchCallback<StateType, ActionType> = (State: StateType) => ActionType; | ||
export type DispatchAction<StateType, ActionType> = ActionType | DispatchCallback<StateType, ActionType>; | ||
export type ReducerType<StateType, ActionType> = (StateArg: StateType, ActionArg: ActionType) => StateType; | ||
export type ReducerType<StateType, ActionType> = (StateArg: StateType, ActionArg: RefineAction<ActionType>) => StateType; | ||
export type InitStateType<StateType> = StateType | (() => StateType); | ||
@@ -15,3 +16,3 @@ export type DispatchType<StateType, ActionType> = (action: DispatchAction<StateType, ActionType>, actionParams?: Payload) => StateType; | ||
* @param {StateType} StateArg | ||
* @param {ActionType} ActionArg | ||
* @param {RefineAction<ActionType>} ActionArg | ||
* @returns {StateType} | ||
@@ -18,0 +19,0 @@ */ |
@@ -14,2 +14,6 @@ /** | ||
/** | ||
* @template ActionType | ||
* @typedef {ActionObject|ActionType} RefineAction | ||
*/ | ||
/** | ||
* @template StateType | ||
@@ -19,3 +23,3 @@ * @template ActionType | ||
* @param {StateType} NextState | ||
* @param {ActionType} Action | ||
* @param {RefineAction<ActionType>} Action | ||
* @param {StateType} PrevState | ||
@@ -49,3 +53,3 @@ * @returns{any} | ||
* @param {StateType} state | ||
* @param {ActionType} action | ||
* @param {RefineAction<ActionType>} action | ||
* @param {StateType} prevState | ||
@@ -86,6 +90,7 @@ */ | ||
}; | ||
export type FluxHandler<StateType, ActionType> = (NextState: StateType, Action: ActionType, PrevState: StateType) => any; | ||
export type RefineAction<ActionType> = ActionObject | ActionType; | ||
export type FluxHandler<StateType, ActionType> = (NextState: StateType, Action: RefineAction<ActionType>, PrevState: StateType) => any; | ||
export type EmitterResetCall<StateType, ActionType> = () => FluxHandler<StateType, ActionType>[]; | ||
export type EmitterAddCall<StateType, ActionType> = (handler: FluxHandler<StateType, ActionType>) => number; | ||
export type EmitterRemoveCall<StateType, ActionType> = (handler: FluxHandler<StateType, ActionType>) => FluxHandler<StateType, ActionType>[]; | ||
export type EmitterEmitCall<StateType, ActionType> = (state: StateType, action: ActionType, prevState: StateType) => any; | ||
export type EmitterEmitCall<StateType, ActionType> = (state: StateType, action: RefineAction<ActionType>, prevState: StateType) => any; |
Sorry, the diff of this file is not supported yet
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
36883
1139