Skip to main content

Variant

Better discriminated unions in TypeScript

[object Object]

Intuitive

Variant was designed with minimal friction in mind. With little boilerplate and no dependencies, write your types freely and use them anywhere.

[object Object]

Powerful

Out of the box support for generic, async, and recursive variants. The ability to create subsets and combinations. Tools for conditional rendering and property matrices

[object Object]

Type Safe

Variant is pure TypeScript and built on top of existing patterns. Works seamlessly with redux, type narrowing, and async.