Skip to main content
Module

x/fun/mod.ts>sync_either.tryCatch

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function sync_either.tryCatch
import { sync_either } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { tryCatch } = sync_either;

Type Parameters

optional
A = never
optional
B = never

Parameters

fa: () => A
onError: (error: unknown) => B