# asEntityId

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

@shumoku/core · 0.4.0 · function

# asEntityId

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

APIの説明は英語のcanonical sourceを表示しています。

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
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `id` | `string` | 追加説明はありません。 | `—` |

## 戻り値

```
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)
