effect-io-ai

Package: effect
Module: String

String.Trim

Type-level representation of trimming whitespace from both ends of a string.

Example (Trimming whitespace at the type level)

import type { String } from "effect"

type Result = String.Trim<"  hello  "> // "hello"

Signature

type Trim<A> = TrimEnd<TrimStart<A>>

Source

Since v2.0.0