variant VS disc-union

Compare variant vs disc-union and see what are their differences.

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
variant disc-union
5 1
178 1
- -
0.0 0.0
2 months ago about 3 years ago
TypeScript TypeScript
Mozilla Public License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

variant

Posts with mentions or reviews of variant. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-01.

disc-union

Posts with mentions or reviews of disc-union. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-04-19.
  • disc-union - (yet another) library for working with discriminated union types
    2 projects | /r/typescript | 19 Apr 2021
    Lately I've been working with discriminated unions more and more, and I found myself writing a lot of the same boilerplate code over and over again, so I wrote disc-union to help with creating and managing discriminated union types. It allows you to easily define your types by simply writing constructor functions for them, and Typescript's type inference does the rest. It also provides functions for exhaustive type-safe matching and other common tasks.

What are some alternatives?

When comparing variant and disc-union you can also consider the following projects:

type-fest - A collection of essential TypeScript types

boxed - Essential building-blocks for functional & safe TypeScript code

TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

ts-pattern - 🎨 The exhaustive Pattern Matching library for TypeScript, with smart type inference.