import { OutputResult } from '../api/types' ; import { JoinedUserAction , JoinedUserActionOk , JoinUserAction , UserActionType } from './types' ; function join ( name ) { return { type : UserActionType . Join , payload : { name } } ; } function joined ( result ) { return { type : UserActionType . Joined , payload : result } ; } const userActions = { join , joined , } ; export default userActions ;