7,610 packages matching “tagged-unions”
ts-union-tools
v0.0.1 · 5 years ago
minimal utilities to work with union types and tagged unions (a.k.a. discriminated unions) in TypeScript
No known vulnerabilities
@siteimprove/alfa-either
v0.119.0 · 14 days ago
Types for modelling tagged unions for cases where the member types cannot otherwise be distinguished
No known vulnerabilities
@onrails/pattern
v0.3.3 · 15 days ago
Lightweight exhaustive matching for owned tagged unions — ts-pattern-shaped DX, tree-shakeable
No known vulnerabilities
@onrails/maybe
v0.2.3 · 1 month ago
Tagged Maybe for expected absence — pure tagged unions, Result interop, tree-shakeable
No known vulnerabilities
@onrails/result
v0.4.0 · 1 month ago
Tagged Result / ResultAsync for railway-oriented TypeScript — pure tagged unions, neverthrow-shaped compat shim, FL-friendly
No known vulnerabilities
shapely
v0.2.3 · 10 years ago
Runtime type checker with tagged unions
No known vulnerabilities
ts-sumtype
v0.4.0 · 7 days ago
Tagged unions with one primitive: Sum, matchTag, Result, Option.
No known vulnerabilities
tagmeme
v0.0.10 · 7 years ago
Simple tagged unions
No known vulnerabilities
typediagram-core
v0.13.0 · 17 days ago
A small DSL for diagramming algebraic data types (records + tagged unions). Language-neutral. No methods.
No known vulnerabilities
@fraczak/k
v6.3.3 · 1 month ago
k — a language for composing first-order partial functions over algebraic data types (products and tagged unions); includes runtime, type derivation, REPL, and codec toolchain
No known vulnerabilities
@fuaran-ui/schema
v0.5.0 · 5 days ago
TypeScript shape of the Fuaran UI §4b typed record contract — tagged unions for every NodeKind / LayoutKind / DisplayKind / InputKind / VisKind / Spec, branded NodeId / FragmentId, bounded primitives, and declarative Defaults.* constants. One conformant h
No known vulnerabilities
tagged-ts
v0.6.1 · 3 months ago
A tagged unions code generation library for discriminating tastes
No known vulnerabilities
headpats
v0.3.0 · 7 years ago
Pattern matching and tagged unions without extra syntax.
No known vulnerabilities
single-key
v1.0.0 · 10 years ago
Utilities for key-tagged values (tagged unions).
No known vulnerabilities
tagged-union
v1.1.0 · 9 years ago
Tagged unions in vanilla JavaScript!
No known vulnerabilities
tagged-routes
v0.0.3 · 8 years ago
Routing with tagged unions
No known vulnerabilities
ts-tagged-union
v1.2.1 · 2 years ago
A modern TypeScript library designed to reduce boilerplate for tagged unions, also known as discriminated unions. This library is also an implementation of algebraic data types
No known vulnerabilities
sum-types
v0.9.4 · 9 years ago
Introduction and eliminiation of sum types (or tagged unions)
No known vulnerabilities
matchable
v1.1.0 · 1 year ago
A utility to define and match on tagged unions (like enums with payloads) — safely.
No known vulnerabilities
reducerify
v1.4.0 · 6 months ago
Type-safe reducers and tagged unions for TypeScript - simplify state management with automatic action creators and pattern matching
No known vulnerabilities