@monstermann/fn
Version:
A utility library for TypeScript.
23 lines (21 loc) • 433 B
TypeScript
import { Trim } from "string-ts";
//#region src/string/trim.d.ts
/**
* `trim(target)`
*
* Removes whitespace from both ends of `target` string.
*
* ```ts
* trim(" hello world "); // "hello world"
* ```
*
* ```ts
* pipe(" hello world ", trim()); // "hello world"
* ```
*/
declare const trim: {
(): <T extends string>(target: T) => Trim<T>;
<T extends string>(target: T): Trim<T>;
};
//#endregion
export { trim };