style-dictionary-utils
Version:
Utilities to use in your style dictionary config
11 lines (10 loc) • 386 B
TypeScript
/**
* jsonToTypes
* @description creates a typescript type definition from a json object
* @param json json object
* @param indent indentation string
* @param rootName name of the root type
* @param isRoot is the root type
* @returns typescript type definition
*/
export declare const jsonToTypes: (json: object, indent?: string, rootName?: string, isRoot?: boolean) => string;