Safer exhaustive switch statements in TypeScript

This page summarizes the projects mentioned and recommended in the original post on /r/typescript

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • ts-pattern

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

    Here is a library providing the described logic with a nice interface. I've used it before and others seems to find it helpful too.

  • proposal-pattern-matching

    Pattern matching syntax for ECMAScript

  • 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.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts