mattermost-redux
Version:
Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client
13 lines (12 loc) • 546 B
TypeScript
import { GlobalState } from "../../types/store";
export declare type PermissionsOptions = {
channel?: string;
team?: string;
permission: string;
};
export declare function getRoles(state: GlobalState): {
[x: string]: import("../../types/roles").Role;
};
export declare const getMySystemRoles: (state: GlobalState) => Set<string>;
export declare const getMySystemPermissions: (state: GlobalState) => Set<string>;
export declare const haveISystemPermission: (state: GlobalState, options: PermissionsOptions) => boolean;