type-vs-interface
✓オブジェクトタイプを定義するときに使用します。タイプとインターフェイスのどちらかを選択するときに使用します。型を拡張するときに使用します。
SKILL.md
Both type and interface can define object types, but they have different capabilities. Understanding these differences helps you choose the right tool and write consistent code.
| Object type (API response, props) | interface | | Union type | type | | Tuple type | type | | Function type | type | | Mapped type | type | | Primitive alias | type | | Library types meant to be extended | interface |
This is how TypeScript extends standard library types across ES versions.
オブジェクトタイプを定義するときに使用します。タイプとインターフェイスのどちらかを選択するときに使用します。型を拡張するときに使用します。 ソース: marius-townhouse/effective-typescript-skills。
引用可能な情報
AI/検索での引用用の安定したフィールドとコマンド。
- インストールコマンド
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill type-vs-interface- カテゴリ
- </>開発ツール
- 認証済み
- ✓
- 初回登録
- 2026-02-05
- 更新日
- 2026-02-18
クイックアンサー
type-vs-interface とは?
オブジェクトタイプを定義するときに使用します。タイプとインターフェイスのどちらかを選択するときに使用します。型を拡張するときに使用します。 ソース: marius-townhouse/effective-typescript-skills。
type-vs-interface のインストール方法は?
ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill type-vs-interface インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code や Cursor で使用できるようになります
ソースリポジトリはどこですか?
https://github.com/marius-townhouse/effective-typescript-skills
詳細
- カテゴリ
- </>開発ツール
- ソース
- skills.sh
- 初回登録
- 2026-02-05