Given a function fn: T, this is the shape of the the wrapped function:
It has the same parameters as fn.
It returns fn's eventual value as a Promise. That is: if fn returns a
Promise, the new function returns the same type of Promise; if fn
returns a non-Promise type, the new function returns a Promise
resolving to that type.
Given a function
fn: T, this is the shape of the the wrapped function:fn.fn's eventual value as a Promise. That is: iffnreturns a Promise, the new function returns the same type of Promise; iffnreturns a non-Promise type, the new function returns a Promise resolving to that type.