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

Defined in

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