claims.ts
v0.4.2
Published
Claim, ClaimSet and Ability for permissions (Typescript port of https://github.com/eturino/claims)
Readme
Claims (typescript)
TypeDoc generated docs in here
Library to encapsulate Claims ("verb:resource") as well as ClaimSet (set of Claims) and Ability (permitted ClaimSet + prohibited ClaimSet).
TBD
(TypeScript port of https://github.com/eturino/claims)
Library bootstrapped using typescript-starter.
Installation
yarn add @eturino/claims or npm install @eturino/claims.
Usage
Allowed verbs: "admin", "read", "delete", "create", "update", "manage".
see the type docs for now
instantiating the object using the buildClaim(), buildClaimSet() and buildAbility() functions is recommended
