style-dictionary-utils
Version:
Utilities to use in your style dictionary config
9 lines (8 loc) • 341 B
TypeScript
import { DesignToken } from 'style-dictionary/types';
/**
* jsonToNestedValue
* @description creates a nested json three where every final value is the `.value` prop
* @param token StyleDictionary.DesignToken
* @returns nested json three
*/
export declare const jsonToNestedValue: (token: DesignToken | Record<string, unknown>) => any;