UNPKG

embedded-typescript

Version:
28 lines (27 loc) 756 B
/** * Escape for safe inclusion in a single (') quoted string. */ export declare function sanitizeString(token: string): string; /** * Returns the preceding indentation. * ___<% %> */ export declare function getLeadingIndentation(token: string): string; /** * Trims the preceding indentation. * ___<% %> */ export declare function trimLeadingIndentation(token: string): string; /** * Trims the following line break and any whitespace. * * <% %>___ */ export declare function trimLaggingNewline(token: string): string; /** * Trims the preceding line break and any whitespace. * _ * __<%> */ export declare function trimLeadingIndentationAndNewline(token: string): string; export declare function removeFinalNewline(token: string): string;