Skip to content

Theemo / @theemo/tokens / isConstrainedValue

Function: isConstrainedValue()

ts
function isConstrainedValue<T>(value): value is ConstrainedValue<T>

Checks whether this token value has constraints

Type parameters

Type parameter
T extends keyof TokenTypeRegistry

Parameters

ParameterTypeDescription
valueTokenValue<T>the token value

Returns

value is ConstrainedValue<T>

true if constraints are present or false if not

See

Constrained Values

Source

packages/@theemo/tokens/src/filters/is-constrained-value.ts:10