reshow-flux-base
Advanced tools
Comparing version 0.17.36 to 0.17.37
@@ -170,5 +170,13 @@ "use strict"; | ||
* @template StateType | ||
* @callback DispatchType | ||
* @param {DispatchAction} action | ||
* @param {Payload} [actionParams] | ||
* @returns {State<StateType>} endingState | ||
*/ | ||
/** | ||
* @template StateType | ||
* @param {ReducerType<StateType>} reducer | ||
* @param {InitStateType<StateType>} [initState] | ||
* @returns {[StoreObject<StateType>, dispatch]} | ||
* @returns {[StoreObject<StateType>, DispatchType<StateType>]} | ||
*/ | ||
@@ -182,5 +190,3 @@ exports.refineAction = refineAction; | ||
/** | ||
* @param {DispatchAction} action | ||
* @param {Payload} [actionParams] | ||
* @returns {State<StateType>} endingState | ||
* @type {DispatchType<StateType>} | ||
*/ | ||
@@ -187,0 +193,0 @@ var dispatch = function dispatch(action, actionParams) { |
{ | ||
"version": "0.17.36", | ||
"version": "0.17.37", | ||
"name": "reshow-flux-base", | ||
@@ -4,0 +4,0 @@ "repository": { |
@@ -45,2 +45,3 @@ /** | ||
export type ReducerType<StateType> = (arg0: State<StateType>, arg1: ActionObject) => State<any>; | ||
export type DispatchType<StateType> = (action: DispatchAction, actionParams?: Payload) => State<StateType>; | ||
/** | ||
@@ -97,6 +98,13 @@ * @template StateType | ||
* @template StateType | ||
* @callback DispatchType | ||
* @param {DispatchAction} action | ||
* @param {Payload} [actionParams] | ||
* @returns {State<StateType>} endingState | ||
*/ | ||
/** | ||
* @template StateType | ||
* @param {ReducerType<StateType>} reducer | ||
* @param {InitStateType<StateType>} [initState] | ||
* @returns {[StoreObject<StateType>, dispatch]} | ||
* @returns {[StoreObject<StateType>, DispatchType<StateType>]} | ||
*/ | ||
declare function createReducer<StateType>(reducer: ReducerType<StateType>, initState?: InitStateType<StateType>): [StoreObject<StateType>, (action: DispatchAction, actionParams?: Payload) => StateType]; | ||
declare function createReducer<StateType>(reducer: ReducerType<StateType>, initState?: InitStateType<StateType>): [StoreObject<StateType>, DispatchType<StateType>]; |
export { default as SimpleMap } from "./SimpleMap"; | ||
export type InitStateType<StateType> = import("./createReducer").InitStateType<StateType>; | ||
export type InitStateType = import("./createReducer").InitStateType<StateType>; | ||
export type ReducerType = import("./createReducer").ReducerType<StateType>; | ||
export type DispatchType = import("./createReducer").DispatchType<StateType>; | ||
export { default as createReducer, refineAction, StoreObject, ActionObject } from "./createReducer"; |
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
32211
1012