UNPKG

@casl/react

Version:

React component for CASL which makes it easy to add permissions in any React application

5 lines (4 loc) 261 B
import { AnyAbility } from '@casl/ability'; import { Consumer, FunctionComponent } from 'react'; import { BoundCanProps } from './Can'; export declare function createContextualCan<T extends AnyAbility>(Getter: Consumer<T>): FunctionComponent<BoundCanProps<T>>;