Hyperlinkv0.8.0-beta.28

String

String.TrimStarttypeeffect/String.ts:314
TrimStart<A>

Type-level representation of trimming whitespace from the start of a string.

Example (Trimming leading whitespace at the type level)

import type { String } from "effect"

type Result = String.TrimStart<"  hello"> // "hello"
models
Source effect/String.ts:3141 lines
export type TrimStart<A extends string> = A extends `${" " | "\n" | "\t" | "\r"}${infer B}` ? TrimStart<B> : A
Referenced by 2 symbols