import { Result } from '../classes'; import { PromiseFunc } from './asyncFn'; /** * A wrapper function to handle an await function and their results/errors as IResult * * @template TResult Type of expected result * @param {PromiseFunc} promiseFn The asynchronous function to wait for * @param {object|null|undefined} thisArg The optional Object to to be used as the "this." object * @param {any} promiseFnArgs A set of arguments to be passed to the function * @return {Promise} * @since 1.4.0 * @example const result: IResult = await asyncFnAsResult(myPromiseFunc, null, 2000); * @example const result: IResult = await asyncFnAsResult(this.myPromiseFunc, this, true, null, 'abc'); */ export default function asyncFnAsResult(promiseFn: PromiseFunc, thisArg?: object | null | undefined, ...promiseFnArgs: any): Promise>; //# sourceMappingURL=asyncFnAsResult.d.ts.map