-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Promise.all weirdness in nightlies #409
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
Comments
The code that we were trying out had some issues: (async () => {
const [num1, num2] = await Promise.all([Promise.resolve(1), Promise.resolve(null)]);
num1.toString();
}) it had different error messages than locally, and it had problems with triggering signature help. Very strange. |
(maybe because of |
I think all the filenames for the lib.d.ts are hardcoded, is there a chance that 3.9 adds a new file? |
I don't think so, but @rbuckton would have more context here. |
I think that microsoft/TypeScript#37510 fixes this. |
Verified that it does! The problem is that TypeScript internally has a list for ordering the Sorry for the confusion on this end. |
👍 thanks! |
The playground seems to have a lot of weirdness [...] with
Promise.all
. Things like signature help don't even seem to work correctly. I'm not sure exactly what the problem is, but if you do try that code out locally with a nightly version of TypeScript, it should all work fine.Originally posted by @DanielRosenwasser in microsoft/TypeScript#33752 (comment)
The text was updated successfully, but these errors were encountered: