[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [Type](https://evolu.dev/docs/api-reference/common/Type) › trimmed

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

Defined in: [packages/common/src/Type.ts:1281](https://github.com/evoluhq/evolu/blob/e7144e2bbe9069362b62dec1b64a8aa922b8f1b0/packages/common/src/Type.ts#L1281)

Trimmed string.

This Type Factory validates whether a string has no leading or trailing
whitespaces.

### Example

```ts
const TrimmedNonEmptyString = trimmed(minLength(1)(String));
// string & Brand<"MinLength1"> & Brand<"Trimmed">
type TrimmedNonEmptyString = typeof TrimmedNonEmptyString.Type;
```