You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
Description
Not a bug but I think PromiseType is what TypeScript calls the "Awaited" utility type:
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
Environment (optional)
The text was updated successfully, but these errors were encountered: