Skip to main content

Function: findStructuralTokenRecommendationMatch()

function findStructuralTokenRecommendationMatch(
selectorList: string,
propertyName: string,
recommendations: readonly Readonly<{
properties: readonly string[];
selectorClassNames: readonly string[];
tokenName: string;
}>[]
):
| Readonly<{
recommendation: StructuralTokenRecommendation;
selector: string;
}>
| undefined;

Defined in: _internal/structural-token-recommendations.ts:21

Find the first structural-token recommendation that matches one selector and declaration property.

Parametersโ€‹

selectorListโ€‹

string

propertyNameโ€‹

string

recommendationsโ€‹

readonly Readonly<{ properties: readonly string[]; selectorClassNames: readonly string[]; tokenName: string; }>[]

Returnsโ€‹

| Readonly<{ recommendation: StructuralTokenRecommendation; selector: string; }> | undefined