API reference / @evolu/common / Type / TrimmedString

Variable: TrimmedString

const TrimmedString: BrandType<
  Type<"String", string, string, StringError, string, StringError>,
  "Trimmed",
  TrimmedError,
  StringError
>;

Defined in: packages/common/src/Type.ts:1020

Trimmed string

  • Use TrimmedString.is to check if an unknown value is trimmed.
  • Use TrimmedString.from to check if a string is trimmed.

Was this page helpful?