Fixed argument name for fromPromise
Added JSDoc type information