code-gen-independent
Installation
SKILL.md
Understand That Code Generation Is Independent of Types
Overview
TypeScript compilation and type checking are separate processes.
The TypeScript compiler does two things: (1) transpile TypeScript to JavaScript, and (2) check types. These are independent - type errors don't prevent code generation, and types don't exist at runtime.
When to Use This Skill
- Confused why code runs despite type errors
- Trying to check types at runtime
- Using instanceof with interfaces
- Expecting types to affect runtime behavior