import { Result } from '../classes/Result'; export type CatchFunc = (...args: any) => T; /** * A function to wrap a specified function with a try-catch block and returns IResult. * * @template TResult Type of expected result * @param {CatchFunc} fnToCatch The function to wrap with try-catch * @param {object|null|undefined} thisArg The optional Object to to be used as the "this." object * @param {any} fnArgs A set of arguments to be passed to the function * @return {Result} * @since 1.4.0 */ export default function catchFn(fnToCatch: CatchFunc, thisArg?: object | null | undefined, ...fnArgs: any): Result; //# sourceMappingURL=catchFn.d.ts.map