Skip to main content
Module

x/hkts/either.ts>tryCatchWrap

Functional programming tools: option, either, task, state, optics, etc.
Latest
variable tryCatchWrap
import { tryCatchWrap } from "https://deno.land/x/hkts@v0.0.52/either.ts";

type

<E, A, AS extends unknown[]>(fn: Fn<AS, A>, onError: (e: unknown) => E) => Fn<AS, Either<E, A>>