UNPKG

react-checker-maker

Version:

React checker maker is a lightweight package that can be used to manage privileges in [React Js](https://reactjs.org). This package utilizes [React Router Dom](https://reactrouter.com) and allows for the addition of specific privileges to routes and eleme

4 lines (3 loc) 351 B
import { ElementPrivilegeType, KeyType, RoutesWithPrivileges } from '../contracts'; export declare function filterRoutes(routes: RoutesWithPrivileges, userPrivileges: KeyType): import("../contracts").RoutesWithPrivilegesObject[]; export declare const renderElementPrivilege: (elementPrivileges: ElementPrivilegeType, userPrivileges: KeyType) => void;