Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PromiseType looks to be the built-in "Awaited" utility type in TS >= 4.5 #200

Open
eXory2024 opened this issue Dec 12, 2024 · 0 comments
Open

Comments

@eXory2024
Copy link

eXory2024 commented Dec 12, 2024

Description

Not a bug but I think PromiseType is what TypeScript calls the "Awaited" utility type:

This type is meant to model operations like await in async functions, or the .then() method on Promises - specifically, the way that they recursively unwrap Promises.

Steps to Reproduce

none

Expected behavior

Not applicable.

Suggested solution(s)

Maybe add "built-in" with the note that the type is called "Awaited" in TypeScript >= 4.5.

Project Dependencies

  • Utility-Types Version: n/a
  • TypeScript Version: n/a
  • tsconfig.json: n/a

Environment (optional)

  • Browser and Version: n/a
  • OS: n/a
  • Node Version: n/a
  • Package Manager and Version: n/a
@eXory2024 eXory2024 changed the title PromiseType looks to be the built-in "Awaited" utility type PromiseType looks to be the built-in "Awaited" utility type in TS Dec 12, 2024
@eXory2024 eXory2024 changed the title PromiseType looks to be the built-in "Awaited" utility type in TS PromiseType looks to be the built-in "Awaited" utility type in TS >= 4.5 Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant