16 lines
389 B
TypeScript
16 lines
389 B
TypeScript
import { Action } from 'redux';
|
|
|
|
import { IActiveUsers } from '../reducers/activeUsers';
|
|
import { SET_ACTIVE_USERS } from './actionsTypes';
|
|
|
|
interface ISetActiveUsers extends Action {
|
|
activeUsers: IActiveUsers;
|
|
}
|
|
|
|
export type TActionActiveUsers = ISetActiveUsers;
|
|
|
|
export const setActiveUsers = (activeUsers: IActiveUsers): ISetActiveUsers => ({
|
|
type: SET_ACTIVE_USERS,
|
|
activeUsers
|
|
});
|