¿Qué es no-null-in-aliases?
Úselo al definir alias de tipo. Úselo cuando aparezca nulo/indefinido en las definiciones de tipo. Úselo cuando los tipos sean confusos. Fuente: marius-townhouse/effective-typescript-skills.
Úselo al definir alias de tipo. Úselo cuando aparezca nulo/indefinido en las definiciones de tipo. Úselo cuando los tipos sean confusos.
Instala rápidamente el skill de IA no-null-in-aliases en tu entorno de desarrollo mediante línea de comandos
Fuente: marius-townhouse/effective-typescript-skills.
When you read User, you expect a user - not maybe-a-user. Include null explicitly at usage sites instead of hiding it in type aliases.
Then the optional chain ?. is needed. But readers can't tell without checking the definition.
This rule applies to the top level of type aliases. Nullable properties inside objects are fine:
Úselo al definir alias de tipo. Úselo cuando aparezca nulo/indefinido en las definiciones de tipo. Úselo cuando los tipos sean confusos. Fuente: marius-townhouse/effective-typescript-skills.
Campos y comandos estables para citas de IA/búsqueda.
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill no-null-in-aliasesBrowse more skills from marius-townhouse/effective-typescript-skills
Úselo al definir alias de tipo. Úselo cuando aparezca nulo/indefinido en las definiciones de tipo. Úselo cuando los tipos sean confusos. Fuente: marius-townhouse/effective-typescript-skills.
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 no-null-in-aliases 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
https://github.com/marius-townhouse/effective-typescript-skills