@onekuma/result
TypeScript icon, indicating that this package has built-in type declarations

0.1.10 • Public • Published

@onekuma/result

version

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/

    Package Sidebar

    Install

    npm i @onekuma/result

    Weekly Downloads

    1

    Version

    0.1.10

    License

    MIT

    Unpacked Size

    5.78 kB

    Total Files

    6

    Last publish

    Collaborators

    • yjl9903