API reference › @evolu/common › Type › NonEmptyTrimmedString
type NonEmptyTrimmedString = string & Brand<"Trimmed"> & Brand<"MinLength1">;
Defined in: packages/common/src/Type.ts:3904
A non-empty TrimmedString.
Use as the base Type for ordinary human-entered text, which should usually be trimmed, non-empty, and bounded. Add a domain-appropriate maximum with maxLength, or use NonEmptyTrimmedString100 or NonEmptyTrimmedString1000.
Exceptional domains should deliberately start from String or TrimmedString and add constraints such as minLength according to whether empty values and surrounding whitespace are meaningful.