reshow-flux-base
Advanced tools
Comparing version 0.17.39 to 0.17.40
@@ -166,3 +166,4 @@ "use strict"; | ||
* @template StateType | ||
* @typedef {function(State<StateType>, ActionObject): State<any>} ReducerType | ||
* @template ActionType | ||
* @typedef {function(State<StateType>, ActionObject|ActionType): State<any>} ReducerType | ||
*/ | ||
@@ -180,3 +181,4 @@ | ||
* @template StateType | ||
* @param {ReducerType<StateType>} reducer | ||
* @template ActionType | ||
* @param {ReducerType<StateType, ActionType>} reducer | ||
* @param {InitStateType<StateType>} [initState] | ||
@@ -183,0 +185,0 @@ * @returns {[StoreObject<StateType>, DispatchType<StateType>]} |
{ | ||
"version": "0.17.39", | ||
"version": "0.17.40", | ||
"name": "reshow-flux-base", | ||
@@ -4,0 +4,0 @@ "repository": { |
@@ -44,3 +44,3 @@ /** | ||
export type EmitterEmitCall<StateType> = (state: State<StateType>, action: ActionObject, prevState: State<StateType>) => any; | ||
export type ReducerType<StateType> = (arg0: State<StateType>, arg1: ActionObject) => State<any>; | ||
export type ReducerType<StateType, ActionType> = (arg0: State<StateType>, arg1: ActionObject | ActionType) => State<any>; | ||
export type DispatchType<StateType> = (action: DispatchAction<StateType>, actionParams?: Payload) => State<StateType>; | ||
@@ -95,3 +95,4 @@ /** | ||
* @template StateType | ||
* @typedef {function(State<StateType>, ActionObject): State<any>} ReducerType | ||
* @template ActionType | ||
* @typedef {function(State<StateType>, ActionObject|ActionType): State<any>} ReducerType | ||
*/ | ||
@@ -107,6 +108,7 @@ /** | ||
* @template StateType | ||
* @param {ReducerType<StateType>} reducer | ||
* @template ActionType | ||
* @param {ReducerType<StateType, ActionType>} reducer | ||
* @param {InitStateType<StateType>} [initState] | ||
* @returns {[StoreObject<StateType>, DispatchType<StateType>]} | ||
*/ | ||
declare function createReducer<StateType>(reducer: ReducerType<StateType>, initState?: InitStateType<StateType>): [StoreObject<StateType>, DispatchType<StateType>]; | ||
declare function createReducer<StateType, ActionType>(reducer: ReducerType<StateType, ActionType>, initState?: InitStateType<StateType>): [StoreObject<StateType>, DispatchType<StateType>]; |
export { default as SimpleMap } from "./SimpleMap"; | ||
export type InitStateType<StateType> = import("./createReducer").InitStateType<StateType>; | ||
export type ReducerType<StateType> = import("./createReducer").ReducerType<StateType>; | ||
export type ReducerType<StateType, ActionType> = import("./createReducer").ReducerType<StateType, ActionType>; | ||
export type DispatchType<StateType> = 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
32824
1026