Theemo / @theemo/tokens / isConstrainedValue
Function: isConstrainedValue()
ts
function isConstrainedValue<T>(value): value is ConstrainedValue<T>;Defined in: packages/tokens/src/filters/is-constrained-value.ts:10
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