UNPKG

@casl/ability

Version:

CASL is an isomorphic authorization JavaScript library which restricts what resources a given user is allowed to access

14 lines (13 loc) 796 B
export * from './Ability'; export * from './PureAbility'; export * from './AbilityBuilder'; export * from './ForbiddenError'; export * from './RawRule'; export type { Rule, RuleOptions } from './Rule'; export * from './hkt'; export * from './matchers/conditions'; export * from './matchers/field'; export type { SubjectClass, SubjectType, Subject, AbilityTuple, Abilities, Normalize, IfString, AbilityParameters, CanParameters, ExtractSubjectType, InferSubjects, ForcedSubject, MatchConditions, ConditionsMatcher, MatchField, FieldMatcher, } from './types'; export type { Generics, RuleOf, RawRuleOf, UpdateEvent, EventHandler, Unsubscribe } from './RuleIndex'; export * as hkt from './hkt'; export { setSubjectType as subject, detectSubjectType, createAliasResolver, wrapArray } from './utils';