TypeScript Standards & Type Safety

•
577
•

Enforces modern TypeScript standards, strict type safety, and advanced type patterns across codebases.

The TypeScript Standards & Type Safety skill equips Claude with strict TypeScript best practices and architectural patterns. It guides type design using interfaces, discriminated unions, branded types, and utility types while actively discouraging anti-patterns like runtime enums, explicit 'any', and non-null assertions. Perfect for configuring tsconfig settings, refactoring legacy JavaScript to strict TypeScript, or designing robust, type-safe API boundaries and domain models.

Key Features

01Strict type safety enforcement with elimination of any and non-null assertions
02Best practices for discriminated unions, branded types, and satisfies operators
03Elimination of runtime enums in favor of const assertions and union literals
04Type verification workflows using language server diagnostic checks
05Guidance on interfaces vs. type aliases for extensible API design
06548 GitHub stars

Use Cases

01Configuring strict tsconfig.json compiler options and eliminating type errors
02Refactoring legacy JavaScript or loosely typed TypeScript to strict type-safe code
03Designing robust domain models, utility types, and discriminated union patterns