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
Regression when spreading Types in an Alias: TS1265: A rest element cannot follow another rest element.Β #57828
It doesn't matter what are the types contained in those arrays. The reported error is pretty generic and is only concerned with the fact that you are using multiple rest elements:
A rest element cannot follow another rest element.(1265)
Activity
Andarist commentedon Mar 18, 2024
This is working as intended now and was changed here, see the discussion before this comment
pfeileon commentedon Mar 18, 2024
Is it? In my example it's all strings, the tuples aren't of mixed types.
Andarist commentedon Mar 18, 2024
It doesn't matter what are the types contained in those arrays. The reported error is pretty generic and is only concerned with the fact that you are using multiple rest elements:
typescript-bot commentedon Mar 22, 2024
This issue has been marked as "Working as Intended" and has seen no recent activity. It has been automatically closed for house-keeping purposes.