Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/core / / acceptsSensitivity

Function: acceptsSensitivity()

ts
function acceptsSensitivity(accepts, record): boolean;

Defined in: packages/core/src/types/sensitivity.ts:33

Return true iff record is allowed to flow to a sink declaring accepts.

Comparison is subset semantics: the record's tier must be one of the tiers in accepts (it's not enough for the record's tier to be lower). That mirrors the way provider acceptsSensitivity is declared in the Graphorin trust matrix.

Parameters

ParameterType
acceptsreadonly Sensitivity[]
recordSensitivity

Returns

boolean

Stable