Theemo / @theemo/tokens / matchesConstrainedValue
Function: matchesConstrainedValue()
ts
function matchesConstrainedValue(value, constraints): booleanChecks whether a token value matches the given constraint
Parameters
| Parameter | Type | Description |
|---|---|---|
value | unknown | the token value |
constraints | Partial<FeatureConstraints & ScopeConstraint> | the constraint |
Returns
boolean
true if the constraint matches or false if not
Defined in
packages/@theemo/tokens/src/filters/matches-constrained-value.ts:42