estreeToString.d.ts 1.0 KB

123456789101112131415161718
  1. export default estreeToString;
  2. export type ESTreeToStringOptions = import('./index.js').ESTreeToStringOptions;
  3. /**
  4. * @todo convert for use by escodegen (until may be patched to support
  5. * custom entries?).
  6. * @param {import('./commentParserToESTree.js').JsdocBlock|
  7. * import('./commentParserToESTree.js').JsdocDescriptionLine|
  8. * import('./commentParserToESTree.js').JsdocTypeLine|
  9. * import('./commentParserToESTree.js').JsdocTag|
  10. * import('./commentParserToESTree.js').JsdocInlineTag|
  11. * import('jsdoc-type-pratt-parser').RootResult
  12. * } node
  13. * @param {ESTreeToStringOptions} opts
  14. * @throws {Error}
  15. * @returns {string}
  16. */
  17. declare function estreeToString(node: import('./commentParserToESTree.js').JsdocBlock | import('./commentParserToESTree.js').JsdocDescriptionLine | import('./commentParserToESTree.js').JsdocTypeLine | import('./commentParserToESTree.js').JsdocTag | import('./commentParserToESTree.js').JsdocInlineTag | import('jsdoc-type-pratt-parser').RootResult, opts?: ESTreeToStringOptions): string;
  18. //# sourceMappingURL=estreeToString.d.ts.map