[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) › length

```ts
const length: <Exact>(exact: Exact) => BrandFactory<
  `Length${Exact}`,
  {
    length: number;
  },
  LengthError<Exact>
>;
```

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

Exact length.

Use numeric literal, not expression. See [BrandFactory](https://evolu.dev/docs/api-reference/common/Type/type-aliases/BrandFactory).

### Example

```ts
// string & Brand<"Length1">
const Length1String = length(1)(String);
```