Skip to main content
Module

x/fun/mod.ts>async_either.AsyncEither

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

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>>