Lightlines
By mkosir

typescript-discriminated-unions

mkosir3.4k installs

Keep invalid states out of your TypeScript code.

What it does

Guides TypeScript modeling and review so mutually exclusive variants carry only their valid data.

When to use it

Use for TypeScript tasks involving mutually exclusive variants, invalid states, exhaustiveness checks, variant-specific properties, application state, function arguments, or React props.

How to use it

It changes how the agent models and reviews TypeScript variants, applying relevant guidance while giving explicit repository conventions precedence.

What you provide

  • An existing project

Latest review

What you need · 0

No setup requirements listed.


Access · 0

No additional actions listed.