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
constx: [string,number][]=[['one',1],['two',2],['three',3]];// Type of y should be [number,string][]// Instead, it is (number|string)[][]consty=x.map(([a,b])=>[b,a]);
Expected behavior:
This may be an expected feature of the language, and if so, please disregard.
I expected the type of y to be [number,string][]
Actual behavior:
Type of y is (number|string)[][]
The text was updated successfully, but these errors were encountered:
TypeScript Version: nightly (2.0.0-dev.201xxxxx)
Playground
Code
Expected behavior:
This may be an expected feature of the language, and if so, please disregard.
I expected the type of
y
to be[number,string][]
Actual behavior:
Type of
y
is(number|string)[][]
The text was updated successfully, but these errors were encountered: