@graphty/graphty-element / session / SetCreatedFrom
Type Alias: SetCreatedFrom ​
SetCreatedFrom = {
kind:"user"; } | {kind:"selection"; } | {from:SetOperand;kind:"scope"; } | {item:ResultItem;kind:"result"; } | {kind:"combine";of: readonlySetOperand[];op:SetCombine; }
Defined in: graphty-element/src/catalog/types.ts:1255
How a set came to exist. Written once, when the set is created.
OPEN UNION: kinds may be added in a minor release; handle unknown kinds.
Union Members ​
Type Literal ​
{ kind: "user"; }
Type Literal ​
{ kind: "selection"; }
Type Literal ​
{ from: SetOperand; kind: "scope"; }
Type Literal ​
{ item: ResultItem; kind: "result"; }
item.run is always present: the set holds the run it was created from.
Type Literal ​
{ kind: "combine"; of: readonly SetOperand[]; op: SetCombine; }