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
Parameter | Type | Description |
---|---|---|
value | TokenValue <T > | the token value |
Returns
value is ConstrainedValue<T>
true
if constraints are present or false
if not
See
Defined in
packages/@theemo/tokens/src/filters/is-constrained-value.ts:10