UNPKG

style-dictionary-utils

Version:
11 lines (10 loc) 307 B
/** * getValue * @description Returns the value of the design token, either token.value or token.$value * @param token StyleDictionary.DesignToken * @returns token value */ export const getValue = (token) => { var _a; return (_a = token.value) !== null && _a !== void 0 ? _a : token.$value; };