·different-variables-types
</>

different-variables-types

Úselo cuando tenga la tentación de reutilizar variables. Úselo cuando la variable cambie de tipo. Utilícelo cuando utilice tipos de unión para múltiples propósitos.

4Instalaciones·0Tendencia·@marius-townhouse

Instalación

$npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill different-variables-types

Cómo instalar different-variables-types

Instala rápidamente el skill de IA different-variables-types en tu entorno de desarrollo mediante línea de comandos

  1. Abrir Terminal: Abre tu terminal o herramienta de línea de comandos (Terminal, iTerm, Windows Terminal, etc.)
  2. Ejecutar comando de instalación: Copia y ejecuta este comando: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill different-variables-types
  3. Verificar instalación: Una vez instalado, el skill se configurará automáticamente en tu entorno de programación con IA y estará listo para usar en Claude Code, Cursor u OpenClaw

Fuente: marius-townhouse/effective-typescript-skills.

SKILL.md

Ver original

In JavaScript, you can assign any value to any variable. But in TypeScript, a variable's type is generally fixed. Using different variables for different concepts improves type safety and code clarity.

Union types are harder to work with and obscure the code's intent.

const makes code easier for both humans and TypeScript to understand.

Úselo cuando tenga la tentación de reutilizar variables. Úselo cuando la variable cambie de tipo. Utilícelo cuando utilice tipos de unión para múltiples propósitos. Fuente: marius-townhouse/effective-typescript-skills.

Datos (listos para citar)

Campos y comandos estables para citas de IA/búsqueda.

Comando de instalación
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill different-variables-types
Categoría
</>Desarrollo
Verificado
Primera vez visto
2026-02-26
Actualizado
2026-03-10

Browse more skills from marius-townhouse/effective-typescript-skills

Respuestas rápidas

¿Qué es different-variables-types?

Úselo cuando tenga la tentación de reutilizar variables. Úselo cuando la variable cambie de tipo. Utilícelo cuando utilice tipos de unión para múltiples propósitos. Fuente: marius-townhouse/effective-typescript-skills.

¿Cómo instalo different-variables-types?

Abre tu terminal o herramienta de línea de comandos (Terminal, iTerm, Windows Terminal, etc.) Copia y ejecuta este comando: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill different-variables-types Una vez instalado, el skill se configurará automáticamente en tu entorno de programación con IA y estará listo para usar en Claude Code, Cursor u OpenClaw

¿Dónde está el repositorio de origen?

https://github.com/marius-townhouse/effective-typescript-skills