Package Exports
- @eturino/claims
- @eturino/claims/dist/index.js
- @eturino/claims/dist/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@eturino/claims) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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