Typescript Discriminated Unions

mkosir/typescript-style-guide/skills/typescript-discriminated-unions

by mkosir170074a0df9b07f4a4a78e3596ec1edf06a14da7No licenseListed Oct 9, 2026Updated Oct 9, 2026

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.

Instructions onlySoftware Development

Only the file list is public. File contents are available once the skill is installed in a workspace.

PathSizeType
SKILL.md9.8 KBtext/markdown

Source and attribution

Source:mkosir/typescript-style-guideinskills/typescript-discriminated-unionsat commit170074a

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal