UNPKG

style-dictionary-utils

Version:
9 lines (8 loc) 329 B
import { TransformedToken } from 'style-dictionary/types'; /** * getValue * @description Returns the value of the design token, either token.value or token.$value * @param token StyleDictionary.DesignToken * @returns token value */ export declare const getValue: <T>(token: TransformedToken | Record<string, unknown>) => T;