Skip to content

pantoken-root / packages/core/src / resolveValue

Fonksiyon: resolveValue() ​

resolveValue(raw): string

Beta

Ham bir token değerini çözümle: bir referans var(...) haline gelir; somut bir değer olduğu gibi iletilir.

Parametreler ​

raw ​

string

Döndürür ​

string

Örnek ​

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

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