Skill / SKILL.md

Typescript Discriminated Unions

mkosir/typescript-style-guide

Apply, review, and explain discriminated unions in TypeScript. Use automatically for tasks involving mutually exclusive variants, invalid state prevention, exhaustiveness checking, variant-specific object properties, application state, function arguments, or React props.
2 views 788 repository stars 0 commentsUpdated Nov 28, 2026
Overview

Apply, review, and explain discriminated unions in TypeScript. Use automatically for tasks involving mutually exclusive variants, invalid state prevention, exhaustiveness checking, variant-specific object properties, application state, function arguments, or React props.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/mkosir/typescript-style-guide' skill-source

Use the complete skill-source/skills/typescript-discriminated-unions directory with your client’s skill installer.

  • skills/typescript-discriminated-unions

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/typescript-discriminated-unions

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
08395e65a3a60492819551e7847f8bb70335d267878f0d2cb3523e8ed039aba4
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills