Skip to content
sigma.js sigma.js
v4.0.6 Docs Examples GitHub 12.2K

isAttributeSource

isAttributeSource<T>(source): source is { attribute: string; default?: T }

Defined in: packages/sigma/src/rendering/nodes/types.ts:240

Type guard to check if a ValueSource is an attribute reference.

T

ValueSource<T>

source is { attribute: string; default?: T }