/** * Force function output to be wrapped in a Promise instance, which also rejects * if the function call threw. * @param {Function} val * @returns {Promise} */ export default function wrapInPromise(val: () => T | Promise): Promise;