evaluateGuard
function evaluateGuard<C, Ctx>( engine, feature, options, ctx): Promise<GuardOutcome>;Defined in: src/adapters/guard.ts:71
Run the guard for one request context. Never throws for a denial; errors
from the customer / amount resolvers or the engine propagate.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
C extends AnyCatalog |
Ctx |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
engine |
Entitlements<C> |
feature |
FeatureKey<C> |
options |
RequireEntitlementOptions<Ctx> |
ctx |
Ctx |
Returns
Section titled “Returns”Promise<GuardOutcome>