types-as-sets
✓Use when reasoning about type relationships. Use when confused by union or intersection types. Use when extends feels counterintuitive.
SKILL.md
A type is a set of possible values. Assignability means subset.
Understanding types as sets helps you reason about unions, intersections, extends, and never. This mental model makes TypeScript's behavior intuitive.
If you're confused by assignability errors, think in terms of sets:
Use when reasoning about type relationships. Use when confused by union or intersection types. Use when extends feels counterintuitive. Source: marius-townhouse/effective-typescript-skills.
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill types-as-sets- Category
- </>Dev Tools
- Verified
- ✓
- First Seen
- 2026-02-05
- Updated
- 2026-02-18
Quick answers
What is types-as-sets?
Use when reasoning about type relationships. Use when confused by union or intersection types. Use when extends feels counterintuitive. Source: marius-townhouse/effective-typescript-skills.
How do I install types-as-sets?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill types-as-sets Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/marius-townhouse/effective-typescript-skills
Details
- Category
- </>Dev Tools
- Source
- skills.sh
- First Seen
- 2026-02-05