What problem does it solve?
This Skill helps developers enforce robust TypeScript patterns and ensure safe, maintainable code by providing a framework of strict typing patterns and safe defaults for data handling and ORM usage.
Core Features & Use Cases
- Strict TypeScript Rules: Enforces no any, no non-null assertions, no unsafe type assertions, and explicit return types for public functions.
- Optional Properties & Exact Optional Property Types: Promotes conditional spreads to safely handle optional fields without introducing undefined values.
- Type Guards & Narrowing: Provides robust runtime checks and discriminated unions for safer type narrowing.
- Drizzle ORM Type Safety: Encourages type-safe queries and explicit type conversions between DB rows and application types.
- Null Safety & Safe Data Handling: Demonstrates safe access patterns, fallbacks, and defensive checks across layers.
- Use Cases: Fixing type errors, implementing complex types or generics, and converting database rows with confidence.
Quick Start
Apply pinpoint-typescript to a sample codebase by enabling strict TypeScript options, replacing any any usages with proper types, and adding type guards where needed.