Skip to content

Graphorin API reference v0.8.0


Graphorin API reference / @graphorin/core / / proactiveOutcomeWithinGrant

Function: proactiveOutcomeWithinGrant()

ts
function proactiveOutcomeWithinGrant(kind, grant): boolean;

Defined in: packages/core/src/types/proactive.ts:59

true when kind sits at or below grant on the ladder. Deterministic, pure - the C3 routing policy helper.

Parameters

ParameterType
kindProactiveOutcomeKind
grantProactiveOutcomeKind

Returns

boolean

Stable