DEV Community


Discussion on: The Problem with Promises in JavaScript

joebowbeer profile image
Joe Bowbeer • Edited

Great exposition of the problems. Thanks.

Here is a new project to add to your list:

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: