import { ApiActionType , Input , Output , ReadApiAction , WriteApiAction } from './types' ; function write ( input ) { return { type : ApiActionType . Write , payload : input } ; } function read ( output ) { return { type : ApiActionType . Read , payload : output } ; } const apiActions = { write , read , } ; export default apiActions ;