Rocket.Chat.ReactNative/app/actions/usersRoles.ts

14 lines
354 B
TypeScript
Raw Permalink Normal View History

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
};
}