# asEntityId

Canonical: https://docs.shumoku.dev/en/library/api/asEntityId
Language: en

@shumoku/core · 0.4.0 · function

# asEntityId

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/models/types.ts#L112)

Trust-boundary cast — DB reads, registry mint, wire-format parse. Use ONLY at: mint, DB row reads, HTTP param boundaries, and tests. If you find yourself casting mid-logic, fix the signature above you instead.

```
asEntityId(id: string): EntityId
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `id` | `string` | No additional description. | `—` |

## Returns

```
EntityId
```

[`libs/@shumoku/core/src/models/types.ts:112`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/models/types.ts#L112)
