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.
(error: unknown,input: OnErrorFunctionInput,) => Promise<void>
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.
(error: unknown,input: OnErrorFunctionInput,) => 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";