·tail-recursive-generics
</>

tail-recursive-generics

「型のインスタンス化が深すぎる」​​エラーが発生した場合に使用します。再帰的なジェネリック型を記述するときに使用します。大型構造物や深型構造物を加工する場合に使用します。型レベルのループを構築するときに使用します。

4インストール·0トレンド·@marius-townhouse

インストール

$npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill tail-recursive-generics

tail-recursive-generics のインストール方法

コマンドラインで tail-recursive-generics AI スキルを開発環境にすばやくインストール

  1. ターミナルを開く: ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます
  2. インストールコマンドを実行: このコマンドをコピーして実行します: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill tail-recursive-generics
  3. インストールを確認: インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります

ソース: marius-townhouse/effective-typescript-skills。

TypeScript limits the depth of type instantiation to prevent infinite loops. When you hit "Type instantiation is excessively deep and possibly infinite," you need to refactor your recursive types to be tail-recursive. Using an accumulator pattern, you can write types that TypeScript can optimize, avoiding depth limits.

This skill is essential for type-level programming that processes large or deeply nested structures.

Use accumulator patterns to make generic types tail-recursive. Pass accumulated results as type parameters rather than building up nested type structures.

「型のインスタンス化が深すぎる」​​エラーが発生した場合に使用します。再帰的なジェネリック型を記述するときに使用します。大型構造物や深型構造物を加工する場合に使用します。型レベルのループを構築するときに使用します。 ソース: marius-townhouse/effective-typescript-skills。

引用可能な情報

AI/検索での引用用の安定したフィールドとコマンド。

インストールコマンド
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill tail-recursive-generics
カテゴリ
</>開発ツール
認証済み
初回登録
2026-02-26
更新日
2026-03-10

Browse more skills from marius-townhouse/effective-typescript-skills

クイックアンサー

tail-recursive-generics とは?

「型のインスタンス化が深すぎる」​​エラーが発生した場合に使用します。再帰的なジェネリック型を記述するときに使用します。大型構造物や深型構造物を加工する場合に使用します。型レベルのループを構築するときに使用します。 ソース: marius-townhouse/effective-typescript-skills。

tail-recursive-generics のインストール方法は?

ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill tail-recursive-generics インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります

ソースリポジトリはどこですか?

https://github.com/marius-townhouse/effective-typescript-skills