1 | /**
|
2 | Strip leading whitespace from each line in a string.
|
3 |
|
4 | The line with the least number of leading whitespace, ignoring empty lines, determines the number to remove.
|
5 |
|
6 | @example
|
7 | ```
|
8 | import stripIndent from 'strip-indent';
|
9 |
|
10 | const string = '\tunicorn\n\t\tcake';
|
11 | // unicorn
|
12 | // cake
|
13 |
|
14 | stripIndent(string);
|
15 | //unicorn
|
16 | // cake
|
17 | ```
|
18 | */
|
19 | export default function stripIndent(string: string): string;
|