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

fail

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

Create a These that always fails with the given error.

@example
import { fail } from "./these.ts";

const failure = fail("Something went wrong");
console.log(failure); // { tag: "Left", left: "Something went wrong" }
function fail<A = never, B = never>(b: B): These<B, A>;
§
fail<A = never, B = never>(b: B): These<B, A>
[src]

§Type Parameters

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

§Parameters

§Return Type