Skip to main content
Module

x/resulty/mod.ts>Result

Provides simple, Rust-like Result and Option objects for Deno.
Latest
interface Result
Re-export
import { type Result } from "https://deno.land/x/resulty@0.4.0/mod.ts";

Properties

readonly
state: T
unwrap: Unwrap<T>
unwrapErr: Unwrap<T>
expect: Expect<T>
expectErr: Expect<T>

Methods

isError(): this is Err<T>
isOk(): this is Ok<T>