Skip to main content

Built and signed on GitHub Actions

Porting some excellent design implementations from Rust to JavaScript.

This package works with Bun, Node.js, Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers
JSR Score
100%
Published
5 days ago (1.1.0)
type alias AsyncResult

Represents an asynchronous operation that yields a Result<T, E>. This is a promise that resolves to Ok(T) if the operation was successful, or Err(E) if there was an error.

Type Parameters

T
  • The type of the value that is produced by a successful operation.
E
  • The type of the error that may be produced by a failed operation.

Definition

Add Package

deno add @happy-js/happy-rusty

Import symbol

import { type AsyncResult } from "@happy-js/happy-rusty";

Add Package

npx jsr add @happy-js/happy-rusty

Import symbol

import { type AsyncResult } from "@happy-js/happy-rusty";

Add Package

yarn dlx jsr add @happy-js/happy-rusty

Import symbol

import { type AsyncResult } from "@happy-js/happy-rusty";

Add Package

pnpm dlx jsr add @happy-js/happy-rusty

Import symbol

import { type AsyncResult } from "@happy-js/happy-rusty";

Add Package

bunx jsr add @happy-js/happy-rusty

Import symbol

import { type AsyncResult } from "@happy-js/happy-rusty";