Skip to main content
Module

x/optionals/mod.ts

Rust-like error handling and options for TypeScript and Deno!
Latest
import * as optionals from "https://deno.land/x/optionals@v3.0.0/mod.ts";

Classes

A Rust-like Option class.

A Rust-like Result class.

Variables

The primitive None value.

Functions

Return a error result.

Construct the None variant of Option.

Return a non-error value result.

Construct an Option from a value other than None.