Skip to content

RevTurbineGateResult

RevTurbineGateResult<T> = { entitlement: EntitlementResult; ran: true; result: T; } | { entitlement: EntitlementResult; ran: false; }

Outcome of RevTurbineCustomerSdk.gate — the advertised gate(action, fn) verb. When the action was permitted, ran is true and result holds the callback’s return value; otherwise ran is false, the callback did not run, and the caller should surface the entitlement (e.g. render an <RTSlot> paywall).

T