style-dictionary-utils
Version:
Utilities to use in your style dictionary config
9 lines (8 loc) • 336 B
TypeScript
import { Token } from 'style-dictionary';
/**
* 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: Token | Record<string, unknown>, original?: "original" | undefined) => T;