Skip to content

pantoken-root / packages/core/src / resolveValue

Ֆունկցիա: resolveValue() ​

resolveValue(raw): string

Բետա

Լուծեք raw token արժեք՝ reference դառնում է var(...); concrete արժեք անցնում է:

Պարամետրեր ​

raw ​

string

Վերադարձվող արժեք ​

string

Օրինակ ​

ts
import { resolveValue } from "@pantoken/core";

resolveValue("{semantic.color.background.base}"); // → "var(--instui-color-background-base)"
resolveValue("#ffffff");                          // → "#ffffff"