context-type-inference
✓値を抽出すると型エラーが発生する場合に使用します。コールバックの型が間違っている場合に使用します。 const アサーションが必要な場合に使用します。
SKILL.md
Separating a value from its context can cause type errors.
TypeScript infers types based on both the value AND where it's used. When you extract a value to a variable, you lose context, which can cause surprising type errors.
Note: as const makes it readonly. If the function expects a mutable tuple, this won't work:
値を抽出すると型エラーが発生する場合に使用します。コールバックの型が間違っている場合に使用します。 const アサーションが必要な場合に使用します。 ソース: marius-townhouse/effective-typescript-skills。
引用可能な情報
AI/検索での引用用の安定したフィールドとコマンド。
- インストールコマンド
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill context-type-inference- カテゴリ
- </>開発ツール
- 認証済み
- ✓
- 初回登録
- 2026-02-05
- 更新日
- 2026-02-18
クイックアンサー
context-type-inference とは?
値を抽出すると型エラーが発生する場合に使用します。コールバックの型が間違っている場合に使用します。 const アサーションが必要な場合に使用します。 ソース: marius-townhouse/effective-typescript-skills。
context-type-inference のインストール方法は?
ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill context-type-inference インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code や Cursor で使用できるようになります
ソースリポジトリはどこですか?
https://github.com/marius-townhouse/effective-typescript-skills
詳細
- カテゴリ
- </>開発ツール
- ソース
- skills.sh
- 初回登録
- 2026-02-05