10 lines
262 B
TypeScript
Raw Permalink Normal View History

2025-09-05 14:59:21 +08:00
import { CallbackFunction } from "./types";
export declare const errorObj: {
e: {};
};
declare function tryCatcher<T>(err: Error, val?: T): void | {
e: Error;
};
export declare function tryCatch<T>(fn: CallbackFunction<T>): typeof tryCatcher;
export {};