UNPKG

shift-tab

Version:

Removes indent space from multiline strings

14 lines (13 loc) 644 B
export declare type TemplateTag = (strings: TemplateStringsArray, ...variables: any[]) => string; export declare type TemplateTagArgs = [strings: TemplateStringsArray, ...variables: any[]]; declare type Options = { indent?: "first" | "smallest" | "all" | number; pad?: boolean | number; trim?: "wrap" | "lines" | "none"; process?: Processor[]; }; export declare type Processor = (input: string) => any; export declare function shiftTab(config: Options): TemplateTag; export declare function shiftTab(text: string): string; export declare function shiftTab(strings: TemplateStringsArray, ...variables: any[]): string; export {};