StatePredicate
StatePredicate<
S> = keyofS| readonly (keyofS)[] |Partial<S>
Defined in: packages/sigma/src/types/styles.ts:83
State predicate for conditional styling (whenState / matchState).
Shorthand forms only — use when for function predicates.
- string: Single state flag name (e.g., “isHovered”) - true if flag is true
- string[]: Array of state flags - true if ALL flags are true (AND logic)
- object: Map of state flags to expected values (AND logic)
Type Parameters
Section titled “Type Parameters”S = BaseNodeState | BaseEdgeState