UNPKG

react-permissions-dynamic

Version:
11 lines (10 loc) 544 B
/// <reference types="react" /> import type { CheckResult, PermissionsContainerType } from '../types'; declare type ProcessOldPermissionsParams<T extends string> = { setPermissions: SetPermissionsType<T>; result: CheckResult<T>; actionsToCheck: T[]; }; declare type SetPermissionsType<T extends string> = React.Dispatch<React.SetStateAction<PermissionsContainerType<T>>>; export declare const processOldPermissions: <T extends string>({ setPermissions, result, actionsToCheck, }: ProcessOldPermissionsParams<T>) => void; export {};