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