@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
OneKuma result library.
pnpm i @onekuma/result
import { Result } from '@onekuma/result'
const ok = Result.ok(1)
const err = Result.err(new Error())
const result = Result.try(() => 1)
MIT License © 2023 XLor
npm i @onekuma/result
1
0.1.10
MIT
5.78 kB
6