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
Since IPromise and QPromise have identical bodies, I would expect these to both work.
Actual behavior:
x1 fails, x2 succeeds.
src/a.ts(14,7): error TS2322: Type 'IPromise<[QPromise<string>, QPromise<number>]>' is not assignable to type 'IPromise<[string, number]>'.
Type '[QPromise<string>, QPromise<number>]' is not assignable to type '[string, number]'.
Type 'QPromise<string>' is not assignable to type 'string'.
Activity
mhegazy commentedon Feb 12, 2018
Seems like a duplicate of #19194
RyanCavanaugh commentedon Oct 29, 2025
This can be written as
now