@alitajs/antd-plus
Version:
基于 ant-design 封装的偏业务组件
10 lines (9 loc) • 349 B
TypeScript
import Policy from '@pansy/policy';
export declare type Authority = string[] | string;
/**
* 权限检查方法
* @param { 权限判定 | Permission judgment } authority
* @param { 权限验证方法 | no pass components } policy
*/
declare const checkAuthority: (policy: Policy, authority: Authority) => boolean;
export default checkAuthority;