import { MusicPlayer } from '../types/state'; interface Action { type: T; payload: P; } export enum ActionTypeRemote { StateSet = 'STATE_SET', ClientsUpdated = 'CLIENTS_UPDATED', } export enum ActionTypeLocal { StateSet = 'LOCAL_STATE_SET', } export type ActionStateSetRemote = Action; export type ActionStateSetLocal = Action; export type ActionClientsUpdated = Action; export type LocalAction = ActionStateSetLocal; export type RemoteAction = ActionStateSetRemote | ActionClientsUpdated; export type AnyAction = LocalAction | RemoteAction;