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

```ts
function uppercased<ParentType>(
  parent: ValidateBrandParent<"Uppercased", ParentType>,
): Type<"Uppercased">;
```

Defined in: [packages/common/src/Type.ts:6334](https://github.com/evoluhq/evolu/blob/dd96d79f1dbe9a49fa12ce8e0aa7d3d0177795ca/packages/common/src/Type.ts#L6334)

Adds uppercased text validation to an existing string Type.

Narrows the output to TypeScript's `Uppercase<string>` while preserving the
parent Type's constraints. Validation leaves the text unchanged. Use
[uppercase](https://evolu.dev/docs/api-reference/common/Type/functions/uppercase) to change its casing.

### Example

```ts
import {
  assertErr,
  assertOk,
  uppercased,
  maxLength,
  String,
} from "@evolu/common";

const Label = uppercased(maxLength(50)(String));
assertOk(Label.fromUnknown("HELLO WORLD"), "HELLO WORLD");
assertErr(Label.fromUnknown("Hello world"));
```