·structural-typing
</>

structural-typing

Úselo cuando le sorprenda que TypeScript acepte valores inesperados. Utilícelo al diseñar parámetros de funciones. Úselo al realizar pruebas con objetos simulados.

4Instalaciones·0Tendencia·@marius-townhouse

Instalación

$npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill structural-typing

Cómo instalar structural-typing

Instala rápidamente el skill de IA structural-typing 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 structural-typing
  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

TypeScript uses structural typing: if it has the right shape, it fits.

Unlike nominal typing (where types must be explicitly declared), TypeScript checks structure. Understanding this prevents surprises and unlocks powerful patterns.

If you're surprised that TypeScript accepts a value, you're probably assuming nominal typing.

Úselo cuando le sorprenda que TypeScript acepte valores inesperados. Utilícelo al diseñar parámetros de funciones. Úselo al realizar pruebas con objetos simulados. 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 structural-typing
Categoría
</>Desarrollo
Verificado
Primera vez visto
2026-02-26
Actualizado
2026-03-11

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

Respuestas rápidas

¿Qué es structural-typing?

Úselo cuando le sorprenda que TypeScript acepte valores inesperados. Utilícelo al diseñar parámetros de funciones. Úselo al realizar pruebas con objetos simulados. Fuente: marius-townhouse/effective-typescript-skills.

¿Cómo instalo structural-typing?

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 structural-typing 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