What is structural-typing?
Use when surprised by TypeScript accepting unexpected values. Use when designing function parameters. Use when testing with mock objects. Source: marius-townhouse/effective-typescript-skills.
Use when surprised by TypeScript accepting unexpected values. Use when designing function parameters. Use when testing with mock objects.
Quickly install structural-typing AI skill to your development environment via command line
Source: marius-townhouse/effective-typescript-skills.
TypeScript uses structural typing: if it has the right shape, it fits.
Unlike nominal typing (where types must be explicitly declared), TypeScript checks structure. Understanding this prevents surprises and unlocks powerful patterns.
If you're surprised that TypeScript accepts a value, you're probably assuming nominal typing.
Use when surprised by TypeScript accepting unexpected values. Use when designing function parameters. Use when testing with mock objects. Source: marius-townhouse/effective-typescript-skills.
Stable fields and commands for AI/search citations.
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill structural-typingBrowse more skills from marius-townhouse/effective-typescript-skills
Use when surprised by TypeScript accepting unexpected values. Use when designing function parameters. Use when testing with mock objects. Source: marius-townhouse/effective-typescript-skills.
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 structural-typing Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw
https://github.com/marius-townhouse/effective-typescript-skills