Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/careful/src/containers/Either.ts

Safe containerization of values for TypeScript
Latest
import * as careful from "https://deno.land/x/careful@v0.1.0/src/containers/Either.ts";

Classes

The Left class represents the left side of Either class which by convention is a "failure".

The Right class represents the right side of Either class which by convention is a "success".

Type Aliases

The Either class represents a value of one of two possible types (a disjoint union). An Either is either a Left or a Right.