Skip to main content
Module

x/fun/async_either.ts>AsyncEither

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
type alias AsyncEither
import { type AsyncEither } from "https://deno.land/x/fun@v2.0.0/async_either.ts";

The AsyncEither type can best be thought of as an asynchronous function that returns an Either. ie. async () => Promise<Either<B, A>>. This forms the basis of most Promise based asynchronous communication in TypeScript.

definition: Async<Either<L, R>>