style-dictionary-utils
Version:
Utilities to use in your style dictionary config
9 lines (8 loc) • 329 B
TypeScript
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;