UNPKG

419 BTypeScriptView Raw
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 */
8export declare const stringifyComment: (str: string) => string;
9export declare function indentComment(comment: string, indent: string): string;
10export declare const lineComment: (str: string, indent: string, comment: string) => string;