Typescript: proposal-promise-allSettled

Created on 24 Apr 2019  路  5Comments  路  Source: microsoft/TypeScript

Search Terms

esnext, allSettled, Promise

Suggestion

https://github.com/tc39/proposal-promise-allSettled is Stage 3 now

Checklist

My suggestion meets these guidelines:

  • [ ] This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • [ ] This wouldn't change the runtime behavior of existing JavaScript code
  • [ ] This could be implemented without emitting different JS based on the types of the expressions
  • [ ] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
  • [ ] This feature would agree with the rest of TypeScript's Design Goals.
Bug lib.d.ts ES Next Fixed

Most helpful comment

Also, the description for this issue says Stage 3, but it was moved to Stage 4 roughly 2 months ago (https://github.com/tc39/proposals/blob/master/finished-proposals.md). It should probably be added to es2020, and not esnext.

All 5 comments

Giving this a bump since I intend to add this to the node type definitions.

Also, the description for this issue says Stage 3, but it was moved to Stage 4 roughly 2 months ago (https://github.com/tc39/proposals/blob/master/finished-proposals.md). It should probably be added to es2020, and not esnext.

This is already supported in Node 12.9.0, I think it should be added to TS natively. There's a @types definition for this but I didn't manage to get it to work though...

Why am I not able to use these types in the playground?

demo

The playground has a constant single dts file for all the lib files. This doesn't get updated per version, and I've not got around to _an expensive to download but more accurate_ version yet - you can follow https://github.com/microsoft/TypeScript-Website/issues/82 for updates there

Was this page helpful?
0 / 5 - 0 ratings