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

12k stars
28 watching
134 forks
Language: TypeScript
last commit: about 1 month ago
Linked from 2 awesome lists

branchingconditionsexhaustiveinferencejavascriptmatchingpatternpattern-matchingtstype-inferencetypescript

Backlinks from these awesome lists:

Related projects:

Repository Description Stars
torokmark/design_patterns_in_typescript A collection of design pattern implementations in TypeScript 5,212
millsp/ts-toolbelt A comprehensive TypeScript library providing a wide range of type utilities to improve type safety and simplify complex type operations 6,752
type-challenges/type-challenges A collection of TypeScript type challenges to improve understanding of the type system and promote community learning. 43,484
solodon4/mach7 A C++ library providing a functional programming style pattern-matching mechanism 1,283
bramstein/funcy An experiment in adding functional pattern matching to JavaScript 247
typescript-cheatsheets/react A collection of documentation and examples for learning and using TypeScript with React to build scalable and maintainable JavaScript applications. 45,464
thma/ltupatternfactory Maps software design patterns to Haskell type class concepts and functional programming structures 994
alexpantyukhin/go-pattern-match An implementation of pattern matching for Go. 245
effect-ts/effect A framework for building robust applications in TypeScript with a focus on functional effects and dependency management 7,641
tsedio/tsed A Node.js and TypeScript framework that simplifies the creation of web applications with decorators and guidelines for readable and error-free code. 2,859
phakornkiong/go-pattern-match Provides a concise and declarative way to handle complex conditional logic in Go 93
gcanti/fp-ts A library for typed functional programming in TypeScript, providing type-safe and scalable abstractions for common data structures. 10,871
ts-essentials/ts-essentials A collection of reusable, high-quality TypeScript types for writing more expressive and type-safe code. 3,770
mathiasbynens/regexp.prototype.match Provides an ES3-compatible polyfill for the match method of RegExp objects in ECMAScript 6 10
ajafff/tslint-consistent-codestyle Provides rules to enforce consistent code style in TypeScript projects 209