Class Answer

The object returned by the can method. Should not be instantiated directly.

Hierarchy

  • Answer

Constructors

Properties

Methods

Constructors

Properties

client: Tier

Reference to the Tier client in use.

err?: TierError

Any error encountered during the feature limit check. Note that when an error occurs, ok will be set to true, so that we fail open by default. In order to prevent access on API failures, you must check both answer.ok and answer.err.

feature: `feature:${string}`

The feature checked by can

ok: boolean

Indicates that the org is not over their limit for the feature Note that when an error occurs, ok will be set to true, so that we fail open by default. In order to prevent access on API failures, you must check both answer.ok and answer.err.

org: `org:${string}`

The org checked by can

Methods

Generated using TypeDoc