ts-pattern

Code branching library

A library that enables expressive and safe code branching with type inference for complex conditions

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

GitHub

13k stars
29 watching
135 forks
Language: TypeScript
last commit: almost 2 years ago
Linked from 2 awesome lists

branchingconditionsexhaustiveinferencejavascriptmatchingpatternpattern-matchingtstype-inferencetypescript

Backlinks from these awesome lists:

Related projects:

RepositoryDescriptionStars
torokmark/design_patterns_in_typescriptA collection of design pattern implementations in TypeScript5,238
millsp/ts-toolbeltA comprehensive TypeScript library providing a wide range of type utilities to improve type safety and simplify complex type operations6,787
type-challenges/type-challengesA collection of TypeScript challenges to improve type system understanding and utility writing43,787
solodon4/mach7A C++ library providing a functional programming style pattern-matching mechanism1,286
bramstein/funcyAn experiment in adding functional pattern matching to JavaScript247
typescript-cheatsheets/reactA collection of documentation and examples for learning and using TypeScript with React to build scalable and maintainable JavaScript applications.45,629
thma/ltupatternfactoryMaps software design patterns to Haskell type class concepts and functional programming structures995
alexpantyukhin/go-pattern-matchAn implementation of pattern matching for Go.246
effect-ts/effectA TypeScript framework providing a functional effect system with tools for building robust applications7,841
tsedio/tsedA comprehensive framework for building Node.js applications with TypeScript, providing a structured approach to coding and reducing errors.2,872
phakornkiong/go-pattern-matchProvides a concise and declarative way to handle complex conditional logic in Go93
gcanti/fp-tsA library for typed functional programming in TypeScript, providing type-safe and scalable abstractions for common data structures.10,910
ts-essentials/ts-essentialsA collection of reusable, high-quality TypeScript types for writing more expressive and type-safe code.3,805
mathiasbynens/regexp.prototype.matchProvides an ES3-compatible polyfill for the match method of RegExp objects in ECMAScript 610
ajafff/tslint-consistent-codestyleProvides rules to enforce consistent code style in TypeScript projects209