UNPKG

@onrails/result

Version:

Tagged Result / ResultAsync for railway-oriented TypeScript — pure tagged unions, neverthrow-shaped compat shim, FL-friendly

102 lines (101 loc) 2.48 kB
{ "name": "@onrails/result", "version": "0.4.0", "description": "Tagged Result / ResultAsync for railway-oriented TypeScript — pure tagged unions, neverthrow-shaped compat shim, FL-friendly", "license": "MIT", "author": "Alan R. Soares", "homepage": "https://alanrsoares.github.io/onrails/modules/_onrails_result.html", "repository": { "type": "git", "url": "git+https://github.com/alanrsoares/onrails.git", "directory": "packages/result" }, "bugs": { "url": "https://github.com/alanrsoares/onrails/issues" }, "keywords": [ "result", "neverthrow", "tagged-union", "discriminated-union", "either", "maybe", "railway-oriented-programming", "rop", "typescript", "bun", "functional", "tanstack-intent" ], "engines": { "node": ">=18", "bun": ">=1.0" }, "publishConfig": { "access": "public", "provenance": true }, "type": "module", "sideEffects": false, "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ "dist", "DESIGN.md", "README.md", "RECIPES.md", "LICENSE", "skills" ], "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" }, "./fluent": { "types": "./dist/fluent.d.ts", "import": "./dist/fluent.js", "require": "./dist/fluent.cjs" }, "./extra": { "types": "./dist/extra.d.ts", "import": "./dist/extra.js", "require": "./dist/extra.cjs" }, "./pipe": { "types": "./dist/pipe.d.ts", "import": "./dist/pipe.js", "require": "./dist/pipe.cjs" }, "./railway": { "types": "./dist/railway.d.ts", "import": "./dist/railway.js", "require": "./dist/railway.cjs" }, "./try-gen": { "types": "./dist/try-gen.d.ts", "import": "./dist/try-gen.js", "require": "./dist/try-gen.cjs" }, "./compat/neverthrow": { "types": "./dist/compat/neverthrow.d.ts", "import": "./dist/compat/neverthrow.js", "require": "./dist/compat/neverthrow.cjs" } }, "scripts": { "typecheck": "tsc --noEmit", "test": "bun test", "check": "bun typecheck && bun test", "build": "tsup", "clean": "rm -rf dist", "prepublishOnly": "bun run build" }, "devDependencies": { "fast-check": "^3.23.2", "ts-expect": "^1.3.0", "tsup": "^8.5.1" } }