·type-vs-interface

Úselo al definir tipos de objetos. Utilícelo al elegir entre tipo e interfaz. Úselo al extender tipos.

2Instalaciones·1Tendencia·@marius-townhouse

Instalación

$npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill type-vs-interface

SKILL.md

Both type and interface can define object types, but they have different capabilities. Understanding these differences helps you choose the right tool and write consistent code.

| Object type (API response, props) | interface | | Union type | type | | Tuple type | type | | Function type | type | | Mapped type | type | | Primitive alias | type | | Library types meant to be extended | interface |

This is how TypeScript extends standard library types across ES versions.

Úselo al definir tipos de objetos. Utilícelo al elegir entre tipo e interfaz. Úselo al extender tipos. Fuente: marius-townhouse/effective-typescript-skills.

Ver original

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 type-vs-interface
Categoría
</>Desarrollo
Verificado
Primera vez visto
2026-02-05
Actualizado
2026-02-18

Respuestas rápidas

¿Qué es type-vs-interface?

Úselo al definir tipos de objetos. Utilícelo al elegir entre tipo e interfaz. Úselo al extender tipos. Fuente: marius-townhouse/effective-typescript-skills.

¿Cómo instalo type-vs-interface?

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 type-vs-interface 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 o Cursor

¿Dónde está el repositorio de origen?

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