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
Both types of t1 and t2 are the same type [number, string] | never[]. But the results of destructuring assignment is different. a1 is number type but a2 is number | string type. a2 should also be number type.
The text was updated successfully, but these errors were encountered:
TypeScript Version: master
Code
Both types of
t1
andt2
are the same type[number, string] | never[]
. But the results of destructuring assignment is different.a1
isnumber
type buta2
isnumber | string
type.a2
should also benumber
type.The text was updated successfully, but these errors were encountered: