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
Without using a type checker, one can not collapse the Promise<Promise<T>> into Promise<T>. This means that with ID, a tool could not always emit identical token lists to TSC, even when ID is enabled.
π Search Terms
π Version & Regression Information
5.5.0-dev.20240514
β― Playground Link
https://www.typescriptlang.org/play/?target=99&isolatedDeclarations=true&ts=5.5.0-dev.20240514#code/KYDwDg9gTgLgBAQwM4E8B2BjOAzArpmASwjThAAoBKOAbwCg44pgZcpSaBfRJOABSgQAtoSTAAPADcIhACYA+OpyA
π» Code
π Actual behavior
TypeScript emits the following:
π Expected behavior
Error, or emit:
Without using a type checker, one can not collapse the
Promise<Promise<T>>
intoPromise<T>
. This means that with ID, a tool could not always emit identical token lists to TSC, even when ID is enabled.Additional information about the issue
cc @dragomirtitian
The text was updated successfully, but these errors were encountered: