·no-null-in-aliases
</>

no-null-in-aliases

Use when defining type aliases. Use when null/undefined appears in type definitions. Use when types are confusing.

4Installs·0Trend·@marius-townhouse

Installation

$npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill no-null-in-aliases

How to Install no-null-in-aliases

Quickly install no-null-in-aliases AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill no-null-in-aliases
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

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

SKILL.md

View raw

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.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill no-null-in-aliases
Category
</>Dev Tools
Verified
First Seen
2026-02-26
Updated
2026-03-10

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

Quick answers

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.

How do I install no-null-in-aliases?

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

Where is the source repository?

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