@twilio/flex-ui
Version:
Twilio Flex UI
23 lines (22 loc) • 680 B
TypeScript
import { AppState } from "./state/AppState";
/**
* Flex reducer for Redux store. Use key `flex` in your redux store for Flex state.
* @example
* import { FlexReducer, applyFlexMiddleware} from "@twilio/flex-ui";
* const reducers = combineReducers({
* flex: FlexReducer,
* myApp: myAppReducer // application reducer
* });
* const myReduxStore = createStore(
* reducers,
* compose(
* applyFlexMiddleware()
* )
* );
* @param {AppState} state state of the application
* @param {any} action Action
* @returns {AppState} Flex state
* @method FlexReducer
* @memberof Store
*/
export declare const FlexReducer: (state: AppState, action: any) => AppState;