Skip to main content
Module

x/fun/sync_either.ts>tryCatch

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

Type Parameters

optional
A = never
optional
B = never

Parameters

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