Skip to main content

Interface: Grant

Defined in: packages/contracts/src/permissions/generate.ts:26

One granted subject, with the reason it is granted, which is rendered as a comment.

Properties​

subject​

readonly subject: string

Defined in: packages/contracts/src/permissions/generate.ts:28

A NATS subject, possibly with * or a trailing > where the grant needs one.


why​

readonly why: string

Defined in: packages/contracts/src/permissions/generate.ts:30

Why the principal holds it.