UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

23 lines (21 loc) 482 B
import { TrimStart } from "string-ts"; //#region src/string/trimStart.d.ts /** * `trimStart(target)` * * Removes whitespace from the start of `target` string. * * ```ts * trimStart(" hello world "); // "hello world " * ``` * * ```ts * pipe(" hello world ", trimStart()); // "hello world " * ``` */ declare const trimStart: { (): <T extends string>(target: T) => TrimStart<T>; <T extends string>(target: T): TrimStart<T>; }; //#endregion export { trimStart };