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
I tested this behavior on version 5.4.5. Local and playground results are equal.
I attached link to playground for demo.
You can see problem in output array. It isn't contains only arrays, but contains just numbers too.
If it works for you, use it! My interpretation of #36554 is that the TypeScript team probably not interested in adopting such a change unless it's part of a holistic revamp of array typing issues, with consideration given to all users and possible breaking changes.
🔎 Search Terms
typescript, concat, bug
🕗 Version & Regression Information
I tested this behavior on version 5.4.5. Local and playground results are equal.
I attached link to playground for demo.
You can see problem in output array. It isn't contains only arrays, but contains just numbers too.
⏯ Playground Link
https://www.typescriptlang.org/play/?jsx=0#code/C4TwDgpgBAcgrgWwEYQE4GUIEc4QHYDG0AvFHoiqgNoC6A3AFAMED2eAzsFMAIYDWEeMjTsopABQA6ae2y5CEdgC5YFNJhz4itAJRiAfFADeDKFFYcWAGwiSrLAObiABgEE8IKDwLAAlm1EAd19gAAsvVFQeEHZnABooWU0Fdh1GAF9GZgCuHgATPKFKdkxgUQlpSXJhDAgylQAFHiiEOpEAHlBIFgAzbn5BNVR2fV0DY1MyIdL2SR6WVABRb1DxWS5iQ14BIpEpGTqdNIZMpnzCoZK69nEqKgBGBIAmBIBmGhpJCwIeYFuAFgSAFYEgA2GhHOhAA
💻 Code
🙁 Actual behavior
Output array contains numbers
🙂 Expected behavior
Output array contains only arrays of numbers
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: