-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import { IDynaduxReducerDic } from "../Dynadux/Dynadux"; | ||
export declare const convertReducersToSectionReducers: (section: string, sectionReducers: IDynaduxReducerDic<any>) => IDynaduxReducerDic<any>; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
import { IDynaduxConfig, TDynaduxDispatch } from "../Dynadux/Dynadux"; | ||
import { IDynaduxConfig, TDynaduxDispatch, IDynaduxReducerDic } from "../Dynadux/Dynadux"; | ||
export interface ICreateStoreConfig<TState> extends IDynaduxConfig<TState> { | ||
} | ||
export interface ICreateStoreAPI<TState = any> { | ||
dispatch: TDynaduxDispatch; | ||
state: TState; | ||
dispatch: TDynaduxDispatch; | ||
createSection: <TSectionState>(createSectionConfig: ICreateSectionConfig<TSectionState>) => ICreateSectionAPI<TState, TSectionState>; | ||
} | ||
export interface ICreateSectionConfig<TSectionState> { | ||
section: string; | ||
initialState: TSectionState; | ||
reducers: IDynaduxReducerDic<TSectionState>; | ||
} | ||
export interface ICreateSectionAPI<TState, TSectionState> { | ||
storeState: TState; | ||
state: TSectionState; | ||
dispatch: TDynaduxDispatch; | ||
} | ||
export declare const createStore: <TState = any>(config: ICreateStoreConfig<TState>) => ICreateStoreAPI<TState>; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.