@accordproject/concerto-core
Version:
Core Implementation for the Concerto Modeling Language
23 lines (22 loc) • 570 B
TypeScript
/**
* converts DCS JSON to YAML string
* @param {object} dcsJson the DCS JSON as parsed object
* @returns {string} the DCS YAML string
*/
declare function jsonToYaml(dcsJson: any): any;
/**
* converts DCS YAML string to JSON format
* @param {string} yamlString the YAML string to convert
* @returns {object} the DCS JSON
*/
declare function yamlToJson(yamlString: any): {
$class: any;
name: any;
version: any;
commands: any;
};
declare const _default: {
jsonToYaml: typeof jsonToYaml;
yamlToJson: typeof yamlToJson;
};
export = _default;