currying-inference

Installation
SKILL.md

Use Classes and Currying to Create New Inference Sites

Overview

When TypeScript can't infer generic types, create new inference opportunities.

TypeScript infers generic type parameters at specific "inference sites." When it doesn't have enough information at one site, you can create additional sites using classes, currying, or helper functions.

When to Use This Skill

  • Generic type parameters aren't being inferred
  • Builder pattern needs type inference
  • Chained methods lose type information
  • Creating APIs that guide type inference

The Iron Rule

Installs
15
GitHub Stars
2
First Seen
Feb 3, 2026
currying-inference — marius-townhouse/effective-typescript-skills