14 lines
354 B
TypeScript
14 lines
354 B
TypeScript
import { Action } from 'redux';
|
|
|
|
import { TUsersRoles } from '../reducers/usersRoles';
|
|
import { USERS_ROLES } from './actionsTypes';
|
|
|
|
export type TActionUsersRoles = Action & { usersRoles: TUsersRoles };
|
|
|
|
export function setUsersRoles(usersRoles: TUsersRoles): Action & { usersRoles: TUsersRoles } {
|
|
return {
|
|
type: USERS_ROLES.SET,
|
|
usersRoles
|
|
};
|
|
}
|