Skip to main content

exhaustive-switches

النجوم٥
التفرعات٠
آخر تحديث٢٠ فبراير ٢٠٢٦ في ٢٠:١٨

Use switch statements with an exhaustive default for discriminated unions and enum-like types. Use when handling union types with a discriminant (e.g. type field), message shapes, or variant types.

التثبيت

التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.

SKILL.md
readonly