@rbuckton It looks like you have done a great deal of the work on the file (src/compiler/transformers/ts.ts). Do you know if PRs would be accepted for this change, or if this change is even acceptable?
So after thinking about this for a bit, I realized that the param types is actually reducing string[] to String to handle the variadic arguments. Would it be possible to treat the array as a generic class? Array<string>, and perhaps store all generic types in the metadata?
TypeScript Version: 2.1.1 / nightly (2.2.0-dev.201xxxxx)
All Typescript Versions
Code
Expected behavior:
There should be metadata added to indicate the type of array.
Actual behavior:
If you look at how rest parameters are handled, there is precedent for preserving array type:
Given:
The output is:
The text was updated successfully, but these errors were encountered: