UNPKG

@lightweightform/theme-common

Version:

Common utilities for Lightweightform themes

16 lines (15 loc) 659 B
/** * Gets the indentation used in the given content by returning the indentation * of the first indented line. * @param content File content on which to get indentation. * @param dft Default indentation when no indentation was found. * @returns Indentation used in the file. */ export declare function getIndentation(content: string, dft?: string): string; /** * Indents new lines in the given content. * @param content Content with new lines to indend. * @param indent Indentation to use on new lines. * @returns Content with indented new lines. */ export declare function indentNewLines(content: string, indent?: string): string;