no-null-in-aliases とは?
型の別名を定義するときに使用します。型定義に null/unknown が出現する場合に使用します。型がわかりにくい場合に使用します。 ソース: marius-townhouse/effective-typescript-skills。
型の別名を定義するときに使用します。型定義に null/unknown が出現する場合に使用します。型がわかりにくい場合に使用します。
コマンドラインで no-null-in-aliases AI スキルを開発環境にすばやくインストール
ソース: 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:
型の別名を定義するときに使用します。型定義に null/unknown が出現する場合に使用します。型がわかりにくい場合に使用します。 ソース: marius-townhouse/effective-typescript-skills。
AI/検索での引用用の安定したフィールドとコマンド。
npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill no-null-in-aliasesBrowse more skills from marius-townhouse/effective-typescript-skills
型の別名を定義するときに使用します。型定義に null/unknown が出現する場合に使用します。型がわかりにくい場合に使用します。 ソース: marius-townhouse/effective-typescript-skills。
ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/marius-townhouse/effective-typescript-skills --skill no-null-in-aliases インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります
https://github.com/marius-townhouse/effective-typescript-skills