evolving-types
No SKILL.md available for this skill.
View on GitHubMore from marius-townhouse/effective-typescript-skills
exhaustiveness-checking
Use when handling tagged unions. Use when adding new cases to discriminated unions. Use when switch statements must cover all cases.
13code-gen-independent
Use when confused about types at runtime. Use when trying to use instanceof with interfaces. Use when type errors don't prevent JavaScript output.
12dom-hierarchy
Use when working with DOM APIs. Use when typing element references. Use when creating DOM utilities. Use when handling events. Use when manipulating the DOM.
10branded-types
Use when primitive types need semantic distinction. Use when string or number types have different meanings. Use when you need nominal typing.
10avoid-wrapper-types
Use when typing primitives. Use when tempted to use String, Number, Boolean. Use when wrapper types appear in errors.
10unify-types
Use when similar types have minor differences. Use when union types become complex. Use when choosing between modeling differences.
10