UNPKG

typescript-result

Version:

A Result type inspired by Rust and Kotlin that leverages TypeScript's powerful type system to simplify error handling and make your code more readable and maintainable.

70 lines (69 loc) 1.55 kB
{ "private": false, "name": "typescript-result", "version": "3.1.1", "description": "A Result type inspired by Rust and Kotlin that leverages TypeScript's powerful type system to simplify error handling and make your code more readable and maintainable.", "keywords": [ "result", "type", "TypeScript", "ts", "error", "error handling", "exception", "ok", "success", "failure" ], "author": { "name": "Erik Verweij", "url": "https://github.com/everweij" }, "repository": "github:everweij/typescript-result", "homepage": "https://github.com/everweij/typescript-result#readme", "bugs": { "url": "https://github.com/everweij/typescript-result/issues/new" }, "license": "MIT", "files": [ "dist" ], "main": "dist/index.js", "type": "module", "module": "dist/index.js", "types": "dist/index.d.ts", "engines": { "node": ">=18" }, "exports": { ".": { "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" } } }, "scripts": { "test": "vitest", "test:ci": "vitest run", "coverage": "vitest run --coverage", "lint": "biome check --write src", "typecheck": "tsc --noEmit", "prepare": "husky", "build": "tsup", "gzip-size": "npx gzip-size-cli ./dist/index.js" }, "devDependencies": { "@biomejs/biome": "1.8.3", "@types/node": "^22.5.2", "@vitest/coverage-v8": "^2.0.5", "husky": "^9.1.5", "tsup": "^8.2.4", "typescript": "^5.5.4", "vitest": "^2.0.5" } }