8 lines
316 B
Plaintext
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) |