Skip to content
Shapemetry

@huukhanhnguyen/types / model/graphSnapshot

model/graphSnapshot

GraphAssertResult

GraphAssertResult = { ok: true; } | { message: string; ok: false; }

Graph-snapshot vocabulary — the flat node/edge picture a debugger or graph viewer reads. The SOURCE shapes (live nodes, the registry) stay in @huukhanhnguyen/model.


GraphSnapshot

GraphSnapshot = { edges: GraphSnapshotEdge[]; nodes: GraphSnapshotNode[]; }

edges

edges: GraphSnapshotEdge[]

nodes

nodes: GraphSnapshotNode[]


GraphSnapshotEdge

GraphSnapshotEdge = { from: string; to: string; type: string; }

from

from: string

to

to: string

type

type: string


GraphSnapshotNode

GraphSnapshotNode = { dirty: boolean; id: string; key: string; lane: string; lastEvalMs: number; method: string; type: string; }

dirty

dirty: boolean

id

id: string

key

key: string

lane

lane: string

lastEvalMs

lastEvalMs: number

method

method: string

type

type: string

Last updated: 📖 1 min readEdit on GitHub