@technobuddha/library
Version: 
A large library of useful functions
11 lines (10 loc) • 569 B
TypeScript
/**
 * Joins a template literal into a single line string by removing line breaks and leading whitespace,
 * then interleaving the provided arguments. The result is a trimmed, single-line string.
 * @param template - The template strings array from a tagged template literal.
 * @param args - The values to be interpolated into the template.
 * @returns A single-line string with all line breaks and leading whitespace removed.
 * @group String
 * @category Operations
 */
export declare function singleLine(template: TemplateStringsArray, ...args: unknown[]): string;