microsoft / tslib

Runtime library for TypeScript helpers.
BSD Zero Clause License
1.24k stars 124 forks source link

The spread (...) syntax allows an string,but __spreadArray does not support string. #236

Closed allenve closed 6 months ago

allenve commented 6 months ago

I take an Error:

image

The reason for this error is that the implementation of the __spreadArray method uses the in syntax. https://github.com/microsoft/tslib/blob/main/tslib.js#L264

image
allenve commented 6 months ago

the implementation of babel: https://github.com/babel/babel/blob/d7f8401f14779d5615c3ae5d669afcb76dc30432/packages/babel-helpers/src/helpers.ts#L729

RyanCavanaugh commented 6 months ago

To expedite the triage process, we need everyone to follow the issue template and instructions.

When you clicked "Create New Issue", the issue form was pre-populated with a template and some instructions. We need you to read those instructions completely, follow them, and then fill in all the fields in that template.

We are not able to assist with issues that don't follow the template instructions as they represent a significantly larger amount of work compared to issues which are correctly specified. Thank you for understanding.