@visulima/string
Version:
Functions for manipulating strings.
17 lines (15 loc) • 445 B
TypeScript
declare const outdent: Outdent;
interface Outdent {
(strings: TemplateStringsArray, ...values: any[]): string;
(options: Options): Outdent;
string: (string_: string) => string;
}
interface Options {
cache?: boolean;
cacheStore?: WeakMap<TemplateStringsArray, string[]>;
newline?: string | null;
trimLeadingNewline?: boolean;
trimTrailingNewline?: boolean;
}
export { outdent };
export type { Options, Outdent };