Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

isAttributeSource

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

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

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

Type Parameters

T

T

Parameters

source

ValueSource<T>

Returns

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