import { combineReducers } from 'redux' ; import { connectionReducer } from './connection' ; import { sessionReducer } from './session' ; import { calibrationReducer } from './calibration' ; import type { Reducer } from 'redux' ; import type { Action } from '../../types' ; import type { ConnectionState } from './connection' ; import type { SessionState } from './session' ; import type { CalibrationState } from './calibration' ; export interface RobotState { connection : ConnectionState ; session : SessionState ; calibration : CalibrationState ; } export const robotReducer = combineReducers < any , Action > ( { connection : connectionReducer , session : sessionReducer , calibration : calibrationReducer , } ) ;