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
As suggested in PR #822, error messages for Tuple type is unclear in explaining why certain tuple can be assigned to array. It will be helpful for users to get messages which provide more directed information.
The text was updated successfully, but these errors were encountered:
DanielRosenwasser
changed the title
Report more directed, useful information in error message
Better error message for invalid assignment of tuples to arrays
Oct 6, 2014
Could we please get some information on what exactly is needed with this issue?
error TS2322: Type '[number, string]' is not assignable to type 'number[]' seems adequate to me, but I also see that:
Types of property 'pop' are incompatible.
Type '() => string | number' is not assignable to type '() => number'.
Type 'string | number' is not assignable to type 'number'.
Type 'string' is not assignable to type 'number'.
As suggested in PR #822, error messages for Tuple type is unclear in explaining why certain tuple can be assigned to array. It will be helpful for users to get messages which provide more directed information.
The text was updated successfully, but these errors were encountered: