DEV Community

loading...

Discussion on: The Problem with Promises in JavaScript

Collapse
joebowbeer profile image
Joe Bowbeer • Edited

Great exposition of the problems. Thanks.

Here is a new project to add to your list:

github.com/DavidWells/safe-await

When I see these [err, val] solutions, I wonder about the Flow/TypeScript types... Hey, why doesn't TypeScript let us declare the exception type of a function in addition to its value's type?

TypeScript Issue 13219: github.com/Microsoft/TypeScript/is...