Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.12/sync_either.ts";

Type Parameters

optional
A = never
optional
B = never

Parameters

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