API — Interface: Edge

Interface: Edge

Defined in: model/types.ts:87

Properties

kind

kind: EdgeKind;

Defined in: model/types.ts:98


label

label: string;

Defined in: model/types.ts:97

Display label (field name, variant name, etc.).


sourceDeclName

sourceDeclName: string;

Defined in: model/types.ts:89

Decl that owns the source row.


sourceRowIndex

sourceRowIndex: number;

Defined in: model/types.ts:91

Index into fields (record) or variants (union). -1 means "from the decl header itself".


sourceVariantFieldIndex

sourceVariantFieldIndex: number | null;

Defined in: model/types.ts:93

For variant payloads pointing to a nested field, the field index inside that variant; otherwise null.


targetDeclName

targetDeclName: string;

Defined in: model/types.ts:95

Decl name targeted. Always points to a declared decl (we don't emit edges to externals/primitives).