API reference › @evolu/common › Type › TrimmedString
type TrimmedString = string & Brand<"Trimmed">;
Defined in: packages/common/src/Type.ts:5388
A String without surrounding whitespace.
This Type validates that a string is already trimmed; it does not modify the value. Use trim to normalize a string. Because an empty string is valid, this Type is useful as an intermediate boundary for input controls that trim their values before domain validation. If an empty string is invalid, use NonEmptyTrimmedString.