Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/security / / DataFlowPolicy

Interface: DataFlowPolicy

Defined in: packages/security/src/dataflow/types.ts:217

The data-flow policy engine. Stateless and pure: all run-scoped state lives in the TaintLedger the caller threads in via DataFlowEvaluation.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
modereadonlyDataFlowModeThe configured mode (mirrors the constructor input).packages/security/src/dataflow/types.ts:219

Methods

evaluate()

ts
evaluate(evaluation): DataFlowDecision;

Defined in: packages/security/src/dataflow/types.ts:221

Decide what to do about one candidate sink call.

Parameters

ParameterType
evaluationDataFlowEvaluation

Returns

DataFlowDecision