@technobuddha/library
Version: 
A large library of useful functions
20 lines (19 loc) • 567 B
TypeScript
/**
 * Options for the indentation functions: {@link  getIndent}, {@link indent}, and {@link unindent}
 * @group String
 * @category Operations
 */
export type IndentOptions = {
    /** The indentation character */
    indenter?: string;
};
/**
 * Indent each line of a string
 * @param input - The string to indent
 * @param options - see {@link IndentOptions}
 * @defaultValue indenter space
 * @returns string with each line indented
 * @group String
 * @category Operations
 */
export declare function indent(input: string, { indenter }?: IndentOptions): string;