#MOC
[[🗃️TypeScript]]で、型の`OR`を表す方法
```ts
// ErrorCodeは、400か、401が入るということになる
type ErrorCode = 400 | 401
```
## 📚ドキュメント
- [ユニオン型 (union type) | TypeScript入門『サバイバルTypeScript』](https://typescriptbook.jp/reference/values-types-variables/union)
## 📖ノウハウ
## 💁トラブルシューティング