/** * 注入acl的帮助方法,实现命令式操作 */ import React from 'react'; import { ContextValue } from './Provider'; import { Omit } from '../utils/type-utils'; export declare type AclProps

= Omit & { wrappedComponentRef?: React.Ref; }; export declare type AclInjectedProps = ContextValue; /** * FIXME: 当前版本(3.0)对装饰器的支持还比较弱,这个函数作为装饰器使用时会报错, * 如果按照这种方式, 则可以正常使用,但是无法设置类型: * return function(Target: T): T { * 所以当前版本建议使用函数方式使用 */ export default function withAcl

(Target: React.ComponentClass

): React.ComponentClass>;