UNPKG

recoder-code

Version:

🚀 AI-powered development platform - Chat with 32+ models, build projects, automate workflows. Free models included!

10 lines (9 loc) • 262 B
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 {};