Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/observability / / compareSensitivityTiers

Function: compareSensitivityTiers()

ts
function compareSensitivityTiers(a, b): number;

Defined in: packages/observability/src/redaction/validator.ts:285

Quickly compute the relative ordering of two sensitivity tiers. Exposed because the tracer + replay layers need it without taking a full dependency on the validator implementation.

Parameters

ParameterType
aSensitivity
bSensitivity

Returns

number

Stable