@onekuma/result
v0.1.10
Published
OneKuma Result
Downloads
20
Readme
@onekuma/result
OneKuma result library.
pnpm i @onekuma/result
Usage
import { Result } from '@onekuma/result'
const ok = Result.ok(1)
const err = Result.err(new Error())
const result = Result.try(() => 1)
License
MIT License © 2023 XLor