Theemo / @theemo/tokens / findConstrainedValue
Function: findConstrainedValue()
ts
function findConstrainedValue(value, constraints): TokenValue<TokenType> | undefined
Finds the value matching the provided constraints
Parameters
Parameter | Type | Description |
---|---|---|
value | unknown | the Token value |
constraints | Partial <FeatureConstraints & ScopeConstraint > | the constraints for lookup |
Returns
TokenValue
<TokenType
> | undefined
the matched token value or nothing
Defined in
packages/@theemo/tokens/src/transforms/find-constrained-value.ts:12