What problem does it solve?
Prevents unsafe TypeScript usage that leads to silent runtime errors and security gaps by removing untyped values and enforcing explicit contracts across modules and APIs.
Core Features & Use Cases
- Enforce no use of any and require unknown plus validation at trust boundaries to stop type leakage and runtime crashes.
- Infer TypeScript types from Zod schemas to keep a single source of truth and reduce drift between validation and types.
- Require explicit return types on all exported functions, use utility types to avoid duplicated interfaces, and use discriminated unions for multi-state data.
- Use case: validate and type-check incoming API payloads with Zod, infer DTOs, and export stable function signatures so downstream consumers never experience unexpected shape changes.
Quick Start
Run the strict-typing checks on the current TypeScript file, replace any uses of any with unknown plus Zod validation where appropriate, and add explicit return types to all exported functions.