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

right

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

Constructs a AsyncEither from a value and wraps it in an inner Right traditionally signaling a successful computation.

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

const right = AE.right(1);

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

§Type Parameters

§
A = never
[src]
§
B = never
[src]

§Parameters

§
right: A
[src]

§Return Type