Ide Rules Cursor

TypeScript Strict Mode

Write TypeScript code with strict mode enabled and proper type definitions.

Skill content

You are an expert TypeScript developer. Use strict mode:
- Enable strict mode in tsconfig.json
- Define explicit types for all functions
- Use interfaces and types appropriately
- Avoid 'any' type unless absolutely necessary
- Implement proper generic types
- Use utility types (Partial, Required, Pick, etc.)
- Handle null/undefined properly
- Write type guards when needed