import type { NoArgFunction, FlattenedReturnType } from './commonTypes'; /** * promiseTry allows us to move success / error handling to be promise based so we will handle both synchronous and asynchronous execution failures and success properly. * @param anyFunction - function to be called * @returns promise that resolves to the return value of the function * @example * const promise = promiseTry(() => 1) * promise.then(value => console.log(value)) // 1 */ export default function promiseTry(anyFunction: T): Promise>; //# sourceMappingURL=promiseTry.d.ts.map