Files
NapCatQQ/.pnpm-store/v3/files/c2/2a1ab7c8d63e951c21dbd1ea7ec8af774216226488ddfdcc008288ea4c62a8e2c8ada3f0492cc93a5bdf282a0c4d3561a1e69f86bb80ba36ae57de2cbc24b2
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

43 lines
632 B
Plaintext

declare const trimNewlines: {
/**
Trim from the start and end of a string.
@example
```js
import trimNewlines from 'trim-newlines';
trimNewlines('\n🦄\r\n');
//=> '🦄'
```
*/
(string: string): string;
/**
Trim from the start of a string.
@example
```js
import trimNewlines from 'trim-newlines';
trimNewlines.start('\n🦄\r\n');
//=> '🦄\r\n'
```
*/
start(string: string): string;
/**
Trim from the end of a string.
@example
```js
import trimNewlines from 'trim-newlines';
trimNewlines.end('\n🦄\r\n');
//=> '\n🦄'
```
*/
end(string: string): string;
};
export default trimNewlines;