system_assignation/node_modules/strip-indent/index.d.ts

20 lines
388 B
TypeScript
Raw Normal View History

2022-03-24 09:22:39 -04:00
/**
Strip leading whitespace from each line in a string.
The line with the least number of leading whitespace, ignoring empty lines, determines the number to remove.
@example
```
import stripIndent from 'strip-indent';
const string = '\tunicorn\n\t\tcake';
// unicorn
// cake
stripIndent(string);
//unicorn
// cake
```
*/
export default function stripIndent(string: string): string;