w3-redux
Version:
redux and redux thunk tools
28 lines (27 loc) • 696 B
TypeScript
export declare const useReducer: (reducerCategory: string, reducerName: string) => {
dispatch: import("redux").Dispatch<import("redux").AnyAction>;
types: {
set: string;
clear: string;
custom: string;
};
state: any;
setState: (values?: {}, scope?: string) => {
type: string;
payload: {
values: {};
scope: string;
};
};
clearState: (values?: {}, scope?: string) => {
type: string;
payload: {
values: {};
scope: string;
};
};
customDispatch: (payload?: {}) => {
type: string;
payload: {};
};
};