index.d.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. export { visitorKeys as jsdocTypeVisitorKeys } from "jsdoc-type-pratt-parser";
  2. export * from "jsdoc-type-pratt-parser";
  3. export * from "./parseComment.js";
  4. export * from "./commentParserToESTree.js";
  5. export * from "./jsdoccomment.js";
  6. export { default as commentHandler } from "./commentHandler.js";
  7. export { default as toCamelCase } from "./toCamelCase.js";
  8. export { default as estreeToString } from "./estreeToString.js";
  9. export type InlineTag = import('./commentParserToESTree.js').JsdocInlineTagNoType & {
  10. start: number;
  11. end: number;
  12. };
  13. export type JsdocTagWithInline = import('comment-parser').Spec & {
  14. line?: import('./commentParserToESTree.js').Integer;
  15. inlineTags: (import('./commentParserToESTree.js').JsdocInlineTagNoType & {
  16. line?: import('./commentParserToESTree.js').Integer;
  17. })[];
  18. };
  19. /**
  20. * Expands on comment-parser's `Block` interface.
  21. */
  22. export type JsdocBlockWithInline = {
  23. description: string;
  24. source: import('comment-parser').Line[];
  25. problems: import('comment-parser').Problem[];
  26. tags: JsdocTagWithInline[];
  27. inlineTags: (import('./commentParserToESTree.js').JsdocInlineTagNoType & {
  28. line?: import('./commentParserToESTree.js').Integer;
  29. })[];
  30. };
  31. export type ESTreeToStringOptions = {
  32. preferRawType?: boolean;
  33. };
  34. export type CommentHandler = (commentSelector: string, jsdoc: import('./index.js').JsdocBlockWithInline) => boolean;
  35. //# sourceMappingURL=index.d.ts.map