Cursor · PluginsLenguajes
TypeScript
Strict types, inference and discriminated unions.
by Prompt Studio
typescript
License: MITView original
Contents
Where it goes: .cursor/rules/typescript.mdc
---
description: Convenciones y buenas prácticas de TypeScript
globs: **/*.ts,**/*.tsx
alwaysApply: false
---
# TypeScript
- Activa `strict` y evita `any`
- usa `unknown` y valida datos externos
- Prefiere uniones discriminadas a flags opcionales
- Deja que TypeScript infiera tipos locales y anota los exportados
- Usa `satisfies` para comprobar objetos sin perder el tipo literal
More in Plugins
Next.js
App Router, Server Components, Server Actions and caching.
Python
Typing, package layout and tests with pytest.
React + TypeScript
Function components, hooks and strict typing.
Expo / React Native
Expo Router, styling and mobile performance.
Go
HTTP APIs, error handling and context.
Tailwind + shadcn/ui
Utility classes, design tokens and accessible components.