Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

wrap

import { wrap } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/async_either.ts";

Construct an AsyncEither<B, A> from a value A.

@example
import * as AE from "./async_either.ts";

const value = AE.wrap(1);

const result = await value(); // Right(1)
function wrap<A, B = never>(a: A): AsyncEither<B, A>;
§
wrap<A, B = never>(a: A): AsyncEither<B, A>
[src]

§Type Parameters

§
B = never
[src]

§Parameters

§Return Type