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 AsyncOption

Represents an asynchronous operation that yields an Option<T>. This is a promise that resolves to either Some(T) if the value is present, or None if the value is absent.

Type Parameters

T
  • The type of the value that may be contained within the Option.

Definition

Add Package

deno add @happy-js/happy-rusty

Import symbol

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

Add Package

npx jsr add @happy-js/happy-rusty

Import symbol

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

Add Package

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

Import symbol

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

Add Package

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

Import symbol

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

Add Package

bunx jsr add @happy-js/happy-rusty

Import symbol

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