Files
2025-02-27 00:04:07 +05:30

8 lines
316 B
Plaintext

---
description: General Rules to set up Typescript.
globs: tsconfig.json
---
- Enable strict TypeScript (strict: true in tsconfig.json)
- Avoid 'any', prefer 'unknown' with runtime checks
- Explicitly type function inputs and outputs
- Use advanced TypeScript features (type guards, mapped types, conditional types)