Skip to content

@graphty/graphty-element / session / SetStatusReason

Type Alias: SetStatusReason ​

SetStatusReason = { kind: "run-out-of-date"; run: RunId; } | { kind: "missing-run"; run: RunId; } | { id: SetId; kind: "missing-set"; name: string; } | { kind: "cycle"; through: readonly string[]; } | { kind: "missing-capability"; name: string; } | { kind: "values-not-kept"; run: RunId; } | { count: number; kind: "ambiguous-parallel-edge"; } | { kind: "invalid"; message: string; } | { kind: "revision-unknown"; run: RunId; } | { freshness: Exclude<SetStatus["freshness"], "current">; id: SetId; kind: "input"; }

Defined in: graphty-element/src/session/sets/types.ts:93

Why a set is not current. OPEN UNION on kind: kinds may be added in a minor release.

Union Members ​

Type Literal ​

{ kind: "run-out-of-date"; run: RunId; }


Type Literal ​

{ kind: "missing-run"; run: RunId; }


Type Literal ​

{ id: SetId; kind: "missing-set"; name: string; }


Type Literal ​

{ kind: "cycle"; through: readonly string[]; }


Type Literal ​

{ kind: "missing-capability"; name: string; }

name is a kind, field or algorithm; a plugin's is spelled <package>:<kind>, naming what to install.


Type Literal ​

{ kind: "values-not-kept"; run: RunId; }

A held execution's values were not kept: the set resolves to nothing.


Type Literal ​

{ count: number; kind: "ambiguous-parallel-edge"; }

Edge members more than one edge carries, which bind neither.


Type Literal ​

{ kind: "invalid"; message: string; }


Type Literal ​

{ kind: "revision-unknown"; run: RunId; }

A run recorded a revision of another scheme version; its freshness is unknown until re-run.


Type Literal ​

{ freshness: Exclude<SetStatus["freshness"], "current">; id: SetId; kind: "input"; }

A set this one reads is not current.