import { Action, ActionCreator } from "redux"; import { ClientInfo } from "@towercg2/client"; export interface UpdateClientAction extends Action { type: "@@RosterPlugin/UPDATE_CLIENTS"; payload: Array }; export const updateClients: ActionCreator = (clients: Array) => ({ type: "@@RosterPlugin/UPDATE_CLIENTS", payload: clients }); export const clearClients: ActionCreator = () => ({ type: "@@RosterPlugin/UPDATE_CLIENTS", payload: [] });