Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
graup
on Nov 6, 2019
|
parent
|
context
|
favorite
| on:
TypeScript 3.7
The problem is that Promise.all stopped infering tuple types. Promise.all([() => A, () => B]) should be Promise<[A, B]> but is now Promise< (A | B) [] >. This issue is being tracked here and a fix seems to be already in the making:
https://github.com/microsoft/TypeScript/issues/33752
https://github.com/microsoft/TypeScript/pull/33707
SirensOfTitan
on Nov 6, 2019
[–]
Yeah, thank you. I think it's questionable they shipped with this kind of regression present (especially having known about it 1 month before release), but easy fix just to override core types with the one in #33707.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: