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
2 months ago (1.0.0)
type alias OnErrorAsyncFunction

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,
) => Promise<void>

Add Package

deno add @pickleboyonline/result-wrapper

Import symbol

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

---- OR ----

Import directly with a jsr specifier

import { type OnErrorAsyncFunction } from "jsr:@pickleboyonline/result-wrapper";

Add Package

npx jsr add @pickleboyonline/result-wrapper

Import symbol

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

Add Package

yarn dlx jsr add @pickleboyonline/result-wrapper

Import symbol

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

Add Package

pnpm dlx jsr add @pickleboyonline/result-wrapper

Import symbol

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

Add Package

bunx jsr add @pickleboyonline/result-wrapper

Import symbol

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