API — Interface: Edge

Interface: Edge

Defined in: model/types.ts:58

Properties

kind

kind: EdgeKind;

Defined in: model/types.ts:69


label

label: string;

Defined in: model/types.ts:68

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


sourceDeclName

sourceDeclName: string;

Defined in: model/types.ts:60

Decl that owns the source row.


sourceRowIndex

sourceRowIndex: number;

Defined in: model/types.ts:62

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


sourceVariantFieldIndex

sourceVariantFieldIndex: number | null;

Defined in: model/types.ts:64

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


targetDeclName

targetDeclName: string;

Defined in: model/types.ts:66

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