# typescript-standards > TypeScript standards for frontend code (types, imports, and safety). Keywords: typescript, types, strict mode, type safety, imports. - Author: willyu1007 - Repository: willyu1007/AI_First_Template - Version: 20251224182030 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-07 - Source: https://github.com/willyu1007/AI_First_Template - Web: https://mule.run/skillshub/@@willyu1007/AI_First_Template~typescript-standards:20251224182030 --- --- name: typescript-standards description: "TypeScript standards for frontend code (types, imports, and safety). Keywords: typescript, types, strict mode, type safety, imports." --- # TypeScript Standards This skill defines practical TypeScript standards for frontend code. --- ## 1. Defaults - Prefer strict settings (when possible). - Avoid `any` in application code. - Use `unknown` for untrusted data until validated. --- ## 2. Types and imports - Prefer `import type { X }` for type-only imports. - Keep public types for a feature in `features//types/`. --- ## 3. API typing - Validate API responses at boundaries (runtime validation if needed). - Keep DTOs (wire types) separate from domain UI types when it reduces churn.