Skip to main content
Module

x/funky/lib/result/result.ts

Getting funky with Deno!
Latest
import * as funky from "https://deno.land/x/funky@v0.3.2/lib/result/result.ts";

Variables

Creates a new ResultErr<T, E> instance, wrapping the specified @error.

Type-safe check whether @result is of type ResultErr<T, E>.

Type-safe check whether @result is of type ResultOk<T, E>.

Type-safe check whether @value is of type Result<T, E>.

Creates a new ResultOk<T, E> instance, wrapping the specified @value.

Interfaces

Represents a runtime-safe result of an operation. The operation might be successful, in which case a Result instance wrapping the produced value of type T is returned. Otherwise, when the operation fails a Result instance wrapping the error of type E is returned.