stringifyComment.d.ts 419 B

12345678910
  1. /**
  2. * Stringifies a comment.
  3. *
  4. * Empty comment lines are left empty,
  5. * lines consisting of a single space are replaced by `#`,
  6. * and all other lines are prefixed with a `#`.
  7. */
  8. export declare const stringifyComment: (str: string) => string;
  9. export declare function indentComment(comment: string, indent: string): string;
  10. export declare const lineComment: (str: string, indent: string, comment: string) => string;