Skip to content

@graphty/graphty-element / session / isResultShape

Function: isResultShape() ​

isResultShape(value): value is "node-metric" | "edge-metric" | "community" | "layered-grouping" | "category-table" | "path" | "node-set" | "edge-set" | "pair-list" | "temporal" | "fact"

Defined in: graphty-element/src/catalog/types.ts:1371

Tell whether a value is one of the declared result shapes.

Parameters ​

value ​

unknown

The value to test.

Returns ​

value is "node-metric" | "edge-metric" | "community" | "layered-grouping" | "category-table" | "path" | "node-set" | "edge-set" | "pair-list" | "temporal" | "fact"

True when the value is a member of RESULT_SHAPES.