This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
TripSit_Suite/node_modules/strip-indent/index.d.ts
2020-11-01 22:46:04 +00:00

22 lines
410 B
TypeScript

/**
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 = require('strip-indent');
const string = '\tunicorn\n\t\tcake';
// unicorn
// cake
stripIndent(string);
//unicorn
// cake
```
*/
declare function stripIndent(string: string): string;
export = stripIndent;