Skip to main content
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
64%
Published
a month ago (1.0.0)
type alias OnErrorFunction

Function to be executed after an error. Takes in the error that caused the try catch to fail and the props associated with the fail.

Definition

(
error: unknown,
) => void

Add Package

deno add @pickleboyonline/result-wrapper

Import symbol

import { type OnErrorFunction } from "@pickleboyonline/result-wrapper";

Add Package

npx jsr add @pickleboyonline/result-wrapper

Import symbol

import { type OnErrorFunction } from "@pickleboyonline/result-wrapper";

Add Package

yarn dlx jsr add @pickleboyonline/result-wrapper

Import symbol

import { type OnErrorFunction } from "@pickleboyonline/result-wrapper";

Add Package

pnpm dlx jsr add @pickleboyonline/result-wrapper

Import symbol

import { type OnErrorFunction } from "@pickleboyonline/result-wrapper";

Add Package

bunx jsr add @pickleboyonline/result-wrapper

Import symbol

import { type OnErrorFunction } from "@pickleboyonline/result-wrapper";