UNPKG

matchable

Version:

A utility to define and match on tagged unions (like enums with payloads) — safely.

44 lines 853 B
{ "name": "matchable", "version": "1.1.0", "description": "A utility to define and match on tagged unions (like enums with payloads) — safely.", "keywords": [ "tagged-union", "pattern-matching", "discriminated-union", "typescript", "match", "matchable", "case", "safe-matching" ], "repository": { "type": "git", "url": "https://github.com/jimmy-guzman/matchable.git" }, "license": "MIT", "sideEffects": false, "type": "module", "exports": { ".": "./dist/index.js" }, "main": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ "dist" ], "peerDependencies": { "typescript": ">=5.0" }, "peerDependenciesMeta": { "typescript": { "optional": true } }, "engines": { "node": ">= 20" }, "publishConfig": { "access": "public" } }