import { SET_PLAY_STATE , PlayState } from './type' ; type ISetPlayStateAction = IAction < typeof SET_PLAY_STATE , Partial < PlayState > > ; export const setPlayState = ( state ) : ISetPlayStateAction => { return { type : SET_PLAY_STATE , payload : state } ; } ; export type PlayAction = ISetPlayStateAction ;