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
{{ message }}
Repository navigation
tsc 3.6.3: Promise.all breaks with some union type #33562
test.ts:11:9 - error TS2322: Type 'number | Promise<1>' is not assignable to type 'number'.
Type 'Promise<1>' is not assignable to type 'number'.
test.ts:12:9 - error TS2322: Type 'string | Promise<"2">' is not assignable to type 'string'.
Type 'Promise<"2">' is not assignable to type 'string'.
Code compiles well with 3.5.3, but not 3.6.3 nor 3.7.0-dev.20190922.
Playground Link:
Weirdly enough, on the playground the return value of Promise.all is not a tuple but a list.
Activity
paul-marechal commentedon Sep 23, 2019
Encountered this issue while updating tsc, will stay on 3.5.3 until this is resolved :)
sandersn commentedon Oct 1, 2019
#33559 is only in 3.7, so is probably not related.