Skip to content

pantoken-root / packages/core/src / resolveValue

Függvény: resolveValue() ​

resolveValue(raw): string

Béta

Oldja fel a nyers token értékét: egy referencia var(...) lesz; egy konkrét érték áthalad.

Paraméterek ​

raw ​

string

Visszatérési érték ​

string

Példa ​

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

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