source: node_modules/@swagger-api/apidom-core/es/transformers/to-string.mjs

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 363 bytes
Line 
1import defaultNamespaceInstance from "../namespace.mjs";
2import dehydrate from "./dehydrate.mjs";
3/**
4 * Create a refracted string representation of an Element.
5 */
6const toString = (element, namespace = defaultNamespaceInstance) => {
7 const refractStructure = dehydrate(element, namespace);
8 return JSON.stringify(refractStructure);
9};
10export default toString;
Note: See TracBrowser for help on using the repository browser.