@shopify/cli-kit
Version:
A set of utilities, interfaces, and models that are common across all the platform features
17 lines (16 loc) • 462 B
TypeScript
import { JsonMap } from '../../private/common/json.js';
export type JsonMapType = JsonMap;
/**
* Given a TOML string, it returns a JSON object.
*
* @param input - TOML string.
* @returns JSON object.
*/
export declare function decodeToml(input: string): JsonMapType;
/**
* Given a JSON object, it returns a TOML string.
*
* @param content - JSON object.
* @returns TOML string.
*/
export declare function encodeToml(content: JsonMap | object): string;