Update TypeScript guidelines to prefer types over interfaces for improved consistency in coding practices.

This commit is contained in:
Matiss Janis Aboltins
2025-09-27 17:29:53 +01:00
parent ff23cfe44f
commit 0af5858f67

View File

@@ -1,5 +1,5 @@
---
description:
description:
globs: *.ts,*.tsx
alwaysApply: false
---
@@ -21,7 +21,7 @@ Naming Conventions
TypeScript Usage
- Use TypeScript for all code; prefer interfaces over types.
- Use TypeScript for all code; prefer types over interfaces.
- Avoid enums; use objects or maps instead.
- Avoid using `any` or `unknown` unless absolutely necessary. Look for type definitions in the codebase instead.
- Avoid type assertions with `as` or `!`; prefer using `satisfies`.