Skip to main content
Module

x/result_js/operators/extract.ts>Matcher

Minimum result type port of Rust
Latest
interface Matcher
import { type Matcher } from "https://deno.land/x/result_js@2.0.0/operators/extract.ts";

Result matcher.

Properties

Ok: (value: T) => U

Match on Ok.

Err: (value: E) => U

Match on Err.