• API reference
  • Blog
  • Changelog
  • Follow us on GitHubFollow us on XJoin our Discord server
  • API reference
  • Blog
  • GitHub
  • Releases
  • Getting started

    • Overview
  • Library

    • Getting started
    • Array
    • Result
    • Dependency injection
    • Resource management
    • Type
    • Task
    • Conventions
    • Testing
  • Local-first

    • Getting started
    • Playgrounds
    • Examples
    • Owners
    • Schema
    • Relay
    • Time travel
    • Indexes
    • Protocol
    • Privacy
    • FAQ
  • Other

    • Comparison
    • Showcase
    • Changelog

API reference › @evolu/common › Type › trimmed

const trimmed: BrandFactory<"Trimmed", string, TrimmedError>;

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

String Brand without surrounding whitespace.

Example

import { assertOk, String, trimmed } from "@evolu/common";

const Trimmed = trimmed(String);

assertOk(Trimmed.fromUnknown("Evolu"), "Evolu");
Markdown for LLMs

© 2026 Evolu

Follow us on GitHubFollow us on XJoin our Discord server