Skip to main content
Module

x/monads/either/either.ts>ResRight

👻 Option, Result, and Either types for TypeScript; Inspired by Rust
Latest
interface ResRight
implements Either<L, R>
import { type ResRight } from "https://deno.land/x/monads@v0.5.10/either/either.ts";

Methods

unwrap(): R
unwrapLeft(): never
unwrapRight(): R
match<U>(fn: Match<never, R, U>): U
map<U>(fn: (val: R) => U): ResRight<never, U>
mapLeft<U>(fn: (left: L) => U): Either<never, R>
mapRight<U>(fn: (right: R) => U): ResRight<never, U>