Hyperlinkv0.8.0-beta.28

String

String.TrimEndtypeeffect/String.ts:348
TrimEnd<A>

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

Example (Trimming trailing whitespace at the type level)

import type { String } from "effect"

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