4 ms·
Promises also work better with Typescript, since it's well defined which type each step returns and which the next function expects. That means the .then(a => n
by Matthias247 10y ago
Promises also work better with Typescript, since it's well defined which type each step returns and which the next function expects. That means the .then(a => next(a)) cascades can be typechecked well. async.waterfall doesn't seem to be typecheckable.