What is no-null-in-aliases?
Use when defining type aliases. Use when null/undefined appears in type definitions. Use when types are confusing. Source: marius-townhouse/effective-typescript-skills.
Use when defining type aliases. Use when null/undefined appears in type definitions. Use when types are confusing.
Quickly install no-null-in-aliases AI skill to your development environment via command line
Source: 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:
Use when defining type aliases. Use when null/undefined appears in type definitions. Use when types are confusing. Source: marius-townhouse/effective-typescript-skills.
Stable fields and commands for AI/search citations.
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill no-null-in-aliasesBrowse more skills from marius-townhouse/effective-typescript-skills
Use when defining type aliases. Use when null/undefined appears in type definitions. Use when types are confusing. Source: marius-townhouse/effective-typescript-skills.
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill no-null-in-aliases Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw
https://github.com/marius-townhouse/effective-typescript-skills