Beignet API reference
    Preparing search index...

    Type Alias CreateEntitlementsOptions<TKey, TContext>

    Options for createEntitlements(...).

    type CreateEntitlementsOptions<
        TKey extends EntitlementKey = EntitlementKey,
        TContext = unknown,
    > = {
        inspect: EntitlementResolver<TKey>;
        onDecision?: EntitlementDecisionObserver<TContext, TKey>;
    }

    Type Parameters

    Index

    Resolver that maps app-owned product state to an entitlement decision.

    Optional best-effort observer for entitlement decisions.

    This hook is diagnostic only: it cannot change decisions or thrown errors.