dynamic-forms / Interface

CycleDetectionResult

Result of cycle detection in the derivation graph.

Properties

NameTypeDescription
bidirectionalPairs
string[] | undefined

Bidirectional derivation pairs detected (A↔B patterns).

These are allowed and stabilize via equality checks, but may oscillate with floating-point precision issues (e.g., currency conversions).

Format: ['fieldA↔fieldB', 'fieldC↔fieldD']

cyclePath
string[] | undefined

Field paths involved in the cycle, if one was detected.

Example: ['country', 'currency', 'country'] for a country -> currency -> country cycle.

errorMessage
string | undefined

Human-readable error message describing the cycle.

hasCycle
boolean

Whether a cycle was detected.